home *** CD-ROM | disk | FTP | other *** search
/ Cracking 2 / Cracking II..iso / Priklady / Priklad 16 / W32.INC < prev    next >
Text File  |  2000-08-29  |  217KB  |  5,013 lines

  1.  
  2. ;------------------------------------------------------------------------------
  3.                                 if      UNICODE
  4. ;
  5. CHAR                            textequ <WCHAR>         ;unicode char type
  6. CHAR_                           equ     2               ;unicode char size
  7. ;
  8.                                 else
  9. ;
  10. CHAR                            textequ <ACHAR>         ;ansi char type
  11. CHAR_                           equ     1               ;ansi char size
  12. ;
  13.                                 endif
  14. ;
  15. ;------------------------------------------------------------------------------
  16.  
  17.  
  18. ;
  19. ;       BASIC TYPES
  20. ;........................................................................
  21. ACHAR                           typedef BYTE            ;ansi character
  22. ATOM                            typedef DWORD           ;string atom
  23. BOOL                            typedef DWORD           ;boolean variable
  24. COLORREF                        typedef DWORD           ;rgb color
  25. DWORDLONG                       typedef QWORD           ;long double word
  26. GLOBALHANDLE                    typedef DWORD           ;global handle
  27. HACCEL                          typedef DWORD           ;accelerator handle
  28. HANDLE                          typedef DWORD           ;unspecified handle
  29. HBITMAP                         typedef DWORD           ;bitmap handle
  30. HBRUSH                          typedef DWORD           ;brush handle
  31. HCOLORSPACE                     typedef DWORD           ;color space handle
  32. HCURSOR                         typedef DWORD           ;cursor handle
  33. HDC                             typedef DWORD           ;device context handle
  34. HDWP                            typedef DWORD           ;defer win pos handle
  35. HENHMETAFILE                    typedef DWORD           ;enh. metafile handle
  36. HFILE                           typedef DWORD           ;file handle
  37. HFONT                           typedef DWORD           ;font handle
  38. HGLOBAL                         typedef DWORD           ;global handle
  39. HHOOK                           typedef DWORD           ;hook handle
  40. HICON                           typedef DWORD           ;icon handle
  41. HINSTANCE                       typedef DWORD           ;instance handle
  42. HINTERNET                       typedef DWORD           ;internet handle
  43. HLOCAL                          typedef DWORD           ;local handle
  44. HMENU                           typedef DWORD           ;menu handle
  45. HMETAFILE                       typedef DWORD           ;metafile handle
  46. HPALETTE                        typedef DWORD           ;palette handle
  47. HPEN                            typedef DWORD           ;pen handle
  48. HRGN                            typedef DWORD           ;region handle
  49. HRSRC                           typedef DWORD           ;resource handle
  50. HSTR                            typedef DWORD           ;string handle
  51. HTASK                           typedef DWORD           ;task handle
  52. HTREEITEM                       typedef DWORD           ;tree view item handle
  53. HWND                            typedef DWORD           ;window handle
  54. INTEGER                         typedef DWORD           ;standard integer
  55. LOCALHANDLE                     typedef DWORD           ;local handle
  56. LONG                            typedef DWORD           ;long integer
  57. LONGINT                         typedef DWORD           ;long integer
  58. LPARAM                          typedef DWORD           ;long parameter
  59. LPBOOL                          typedef DWORD           ;long ptr to boolean
  60. LPBYTE                          typedef DWORD           ;long ptr to byte
  61. LPCSTR                          typedef DWORD           ;long ptr to string
  62. LPCTSTR                         typedef DWORD           ;long ptr to string
  63. LPCVOID                         typedef DWORD           ;long ptr to buffer
  64. LPDWORD                         typedef DWORD           ;long ptr to dword
  65. LPFN                            typedef DWORD           ;long ptr to function
  66. LPINT                           typedef DWORD           ;long ptr to integer
  67. LPLONG                          typedef DWORD           ;long ptr to long int
  68. LPSTR                           typedef DWORD           ;long ptr to string
  69. LPTSTR                          typedef DWORD           ;long ptr to string
  70. LPVOID                          typedef DWORD           ;long ptr to buffer
  71. LPWORD                          typedef DWORD           ;long ptr to word
  72. LRESULT                         typedef DWORD           ;long result
  73. POINTER                         typedef DWORD           ;pointer to anything
  74. PVOID                           typedef DWORD           ;pointer to buffer
  75. SHORTINT                        typedef WORD            ;short integer
  76. UINT                            typedef DWORD           ;unsigned integer
  77. WCHAR                           typedef WORD            ;unicode character
  78. WNDPROC                         typedef DWORD           ;window procedure
  79. WPARAM                          typedef DWORD           ;word parameter
  80. ;
  81. ;
  82. ;
  83. NULL                            equ     0               ;null
  84. FALSE                           equ     0               ;boolean false
  85. TRUE                            equ     1               ;boolean true
  86. ;
  87. ;------------------------------------------------------------------------------
  88. ;
  89. BUTTON                          equ     0080h           ;button class
  90. EDIT                            equ     0081h           ;edit class
  91. STATIC                          equ     0082h           ;static class
  92. LISTBOX                         equ     0083h           ;list box class
  93. SCROLLBAR                       equ     0084h           ;scroll bar class
  94. COMBOBOX                        equ     0085h           ;combo box class
  95. ;
  96. ;------------------------------------------------------------------------------
  97. ;
  98. MAX_PATH                        equ     260             ;maximum path length
  99. OFS_MAXPATHNAME                 equ     128             ;max OFSTRUCT path len
  100. ;
  101. ;------------------------------------------------------------------------------
  102. ;
  103. INVALID_HANDLE_VALUE            equ     0FFFFFFFFh      ;invalid handle
  104. INVALID_FILE_SIZE               equ     0FFFFFFFFh      ;invalid file size
  105. INVALID_FILE_POINTER            equ     0FFFFFFFFh      ;invalid file pointer
  106. ;
  107. ;==============================================================================
  108. ;
  109. ;       WIN32 CONSTANTS
  110. ;
  111. ;==============================================================================
  112. ;
  113. ; ========================
  114. ; bitmap compression types
  115. ; ========================
  116. ;
  117. BI_RGB                          equ     0
  118. BI_RLE8                         equ     1
  119. BI_RLE4                         equ     2
  120. BI_BITFIELDS                    equ     3
  121. ;
  122. ;------------------------------------------------------------------------------
  123. ;
  124. ; =======================
  125. ; button control messages
  126. ; =======================
  127. ;
  128. BM_GETCHECK                     equ     00F0h
  129. BM_SETCHECK                     equ     00F1h
  130. BM_GETSTATE                     equ     00F2h
  131. BM_SETSTATE                     equ     00F3h
  132. BM_SETSTYLE                     equ     00F4h
  133. BM_CLICK                        equ     00F5h
  134. BM_GETIMAGE                     equ     00F6h
  135. BM_SETIMAGE                     equ     00F7h
  136. ;
  137. ;------------------------------------------------------------------------------
  138. ;
  139. ; ============================
  140. ; button control notifications
  141. ; ============================
  142. ;
  143. BN_CLICKED                      equ     0000h
  144. BN_PAINT                        equ     0001h
  145. BN_HILITE                       equ     0002h
  146. BN_UNHILITE                     equ     0003h
  147. BN_DISABLE                      equ     0004h
  148. BN_DOUBLECLICKED                equ     0005h
  149. BN_SETFOCUS                     equ     0006h
  150. BN_KILLFOCUS                    equ     0007h
  151. ;
  152. BN_PUSHED                       equ     BN_HILITE
  153. BN_UNPUSHED                     equ     BN_UNHILITE
  154. BN_DBLCLK                       equ     BN_DOUBLECLICKED
  155. ;
  156. ;------------------------------------------------------------------------------
  157. ;
  158. ; =====================
  159. ; button control styles
  160. ; =====================
  161. ;
  162. BS_PUSHBUTTON                   equ     0000h
  163. BS_DEFPUSHBUTTON                equ     0001h
  164. BS_CHECKBOX                     equ     0002h
  165. BS_AUTOCHECKBOX                 equ     0003h
  166. BS_RADIOBUTTON                  equ     0004h
  167. BS_3STATE                       equ     0005h
  168. BS_AUTO3STATE                   equ     0006h
  169. BS_GROUPBOX                     equ     0007h
  170. BS_USERBUTTON                   equ     0008h
  171. BS_AUTORADIOBUTTON              equ     0009h
  172. BS_OWNERDRAW                    equ     000Bh
  173. BS_LEFTTEXT                     equ     0020h
  174. BS_TEXT                         equ     0000h
  175. BS_ICON                         equ     0040h
  176. BS_BITMAP                       equ     0080h
  177. BS_LEFT                         equ     0100h
  178. BS_RIGHT                        equ     0200h
  179. BS_CENTER                       equ     0300h
  180. BS_TOP                          equ     0400h
  181. BS_BOTTOM                       equ     0800h
  182. BS_VCENTER                      equ     0C00h
  183. BS_PUSHLIKE                     equ     1000h
  184. BS_MULTILINE                    equ     2000h
  185. BS_NOTIFY                       equ     4000h
  186. BS_FLAT                         equ     8000h
  187. ;
  188. BS_RIGHTBUTTON                  equ     BS_LEFTTEXT
  189. ;
  190. ;------------------------------------------------------------------------------
  191. ;
  192. ; ==================
  193. ; combo box messages
  194. ; ==================
  195. ;
  196. CB_GETEDITSEL                   equ     0140h
  197. CB_LIMITTEXT                    equ     0141h
  198. CB_SETEDITSEL                   equ     0142h
  199. CB_ADDSTRING                    equ     0143h
  200. CB_DELETESTRING                 equ     0144h
  201. CB_DIR                          equ     0145h
  202. CB_GETCOUNT                     equ     0146h
  203. CB_GETCURSEL                    equ     0147h
  204. CB_GETLBTEXT                    equ     0148h
  205. CB_GETLBTEXTLEN                 equ     0149h
  206. CB_INSERTSTRING                 equ     014Ah
  207. CB_RESETCONTENT                 equ     014Bh
  208. CB_FINDSTRING                   equ     014Ch
  209. CB_SELECTSTRING                 equ     014Dh
  210. CB_SETCURSEL                    equ     014Eh
  211. CB_SHOWDROPDOWN                 equ     014Fh
  212. CB_GETITEMDATA                  equ     0150h
  213. CB_SETITEMDATA                  equ     0151h
  214. CB_GETDROPPEDCONTROLRECT        equ     0152h
  215. CB_SETITEMHEIGHT                equ     0153h
  216. CB_GETITEMHEIGHT                equ     0154h
  217. CB_SETEXTENDEDUI                equ     0155h
  218. CB_GETEXTENDEDUI                equ     0156h
  219. CB_GETDROPPEDSTATE              equ     0157h
  220. CB_FINDSTRINGEXACT              equ     0158h
  221. CB_SETLOCALE                    equ     0159h
  222. CB_GETLOCALE                    equ     015Ah
  223. CB_GETTOPINDEX                  equ     015Bh
  224. CB_SETTOPINDEX                  equ     015Ch
  225. CB_GETHORIZONTALEXTENT          equ     015Dh
  226. CB_SETHORIZONTALEXTENT          equ     015Eh
  227. CB_GETDROPPEDWIDTH              equ     015Fh
  228. CB_SETDROPPEDWIDTH              equ     0160h
  229. CB_INITSTORAGE                  equ     0161h
  230. CB_MSGMAX                       equ     0162h
  231. ;
  232. ;------------------------------------------------------------------------------
  233. ;
  234. ; =======================
  235. ; combo box return values
  236. ; =======================
  237. ;
  238. CB_OKAY                         equ      0
  239. CB_ERR                          equ     -1
  240. CB_ERRSPACE                     equ     -2
  241. ;
  242. ;------------------------------------------------------------------------------
  243. ;
  244. ; ======================
  245. ; CreateDIBitmap() codes
  246. ; ======================
  247. ;
  248. CBM_INIT                        equ     4
  249. ;
  250. ;------------------------------------------------------------------------------
  251. ;
  252. ; ============================
  253. ; combo box notification codes
  254. ; ============================
  255. ;
  256. CBN_ERRSPACE                    equ     -1
  257. CBN_SELCHANGE                   equ      1
  258. CBN_DBLCLK                      equ      2
  259. CBN_SETFOCUS                    equ      3
  260. CBN_KILLFOCUS                   equ      4
  261. CBN_EDITCHANGE                  equ      5
  262. CBN_EDITUPDATE                  equ      6
  263. CBN_DROPDOWN                    equ      7
  264. CBN_CLOSEUP                     equ      8
  265. CBN_SELENDOK                    equ      9
  266. CBN_SELENDCANCEL                equ     10
  267. ;
  268. ;------------------------------------------------------------------------------
  269. ;
  270. ; ================
  271. ; combo box styles
  272. ; ================
  273. ;
  274. CBS_SIMPLE                      equ     0001h
  275. CBS_DROPDOWN                    equ     0002h
  276. CBS_DROPDOWNLIST                equ     0003h
  277. CBS_OWNERDRAWFIXED              equ     0010h
  278. CBS_OWNERDRAWVARIABLE           equ     0020h
  279. CBS_AUTOHSCROLL                 equ     0040h
  280. CBS_OEMCONVERT                  equ     0080h
  281. CBS_SORT                        equ     0100h
  282. CBS_HASSTRINGS                  equ     0200h
  283. CBS_NOINTEGRALHEIGHT            equ     0400h
  284. CBS_DISABLENOSCROLL             equ     0800h
  285. CBS_UPPERCASE                   equ     2000h
  286. CBS_LOWERCASE                   equ     4000h
  287. ;
  288. ;------------------------------------------------------------------------------
  289. ;
  290. ; =================
  291. ; clipboard formats
  292. ; =================
  293. ;
  294. CF_TEXT                         equ     0001h
  295. CF_BITMAP                       equ     0002h
  296. CF_METAFILEPICT                 equ     0003h
  297. CF_SYLK                         equ     0004h
  298. CF_DIF                          equ     0005h
  299. CF_TIFF                         equ     0006h
  300. CF_OEMTEXT                      equ     0007h
  301. CF_DIB                          equ     0008h
  302. CF_PALETTE                      equ     0009h
  303. CF_PENDATA                      equ     000Ah
  304. CF_RIFF                         equ     000Bh
  305. CF_WAVE                         equ     000Ch
  306. CF_UNICODETEXT                  equ     000Dh
  307. CF_ENHMETAFILE                  equ     000Eh
  308. CF_HDROP                        equ     000Fh
  309. CF_LOCALE                       equ     0010h
  310. CF_MAX                          equ     0011h
  311. ;
  312. CF_OWNERDISPLAY                 equ     0080h
  313. CF_DSPTEXT                      equ     0081h
  314. CF_DSPBITMAP                    equ     0082h
  315. CF_DSPMETAFILEPICT              equ     0083h
  316. CF_DSPENHMETAFILE               equ     008Eh
  317. ;
  318. CF_PRIVATEFIRST                 equ     0200h
  319. CF_PRIVATELAST                  equ     02FFh
  320. ;
  321. CF_GDIOBJFIRST                  equ     0300h
  322. CF_GDIOBJLAST                   equ     03FFh
  323. ;
  324. ;------------------------------------------------------------------------------
  325. ;
  326. ; ===========
  327. ; color types
  328. ; ===========
  329. ;
  330. COLOR_SCROLLBAR                 equ      0
  331. COLOR_BACKGROUND                equ      1
  332. COLOR_ACTIVECAPTION             equ      2
  333. COLOR_INACTIVECAPTION           equ      3
  334. COLOR_MENU                      equ      4
  335. COLOR_WINDOW                    equ      5
  336. COLOR_WINDOWFRAME               equ      6
  337. COLOR_MENUTEXT                  equ      7
  338. COLOR_WINDOWTEXT                equ      8
  339. COLOR_CAPTIONTEXT               equ      9
  340. COLOR_ACTIVEBORDER              equ     10
  341. COLOR_INACTIVEBORDER            equ     11
  342. COLOR_APPWORKSPACE              equ     12
  343. COLOR_HIGHLIGHT                 equ     13
  344. COLOR_HIGHLIGHTTEXT             equ     14
  345. COLOR_BTNFACE                   equ     15
  346. COLOR_BTNSHADOW                 equ     16
  347. COLOR_GRAYTEXT                  equ     17
  348. COLOR_BTNTEXT                   equ     18
  349. COLOR_INACTIVECAPTIONTEXT       equ     19
  350. COLOR_BTNHIGHLIGHT              equ     20
  351. COLOR_3DDKSHADOW                equ     21
  352. COLOR_3DLIGHT                   equ     22
  353. COLOR_INFOTEXT                  equ     23
  354. COLOR_INFOBK                    equ     24
  355. ;
  356. COLOR_DESKTOP                   equ     COLOR_BACKGROUND
  357. COLOR_3DFACE                    equ     COLOR_BTNFACE
  358. COLOR_3DSHADOW                  equ     COLOR_BTNSHADOW
  359. COLOR_3DHIGHLIGHT               equ     COLOR_BTNHIGHLIGHT
  360. COLOR_3DHILIGHT                 equ     COLOR_BTNHIGHLIGHT
  361. COLOR_BTNHILIGHT                equ     COLOR_BTNHIGHLIGHT
  362. ;
  363. ;------------------------------------------------------------------------------
  364. ;
  365. ; ===================
  366. ; network connections
  367. ; ===================
  368. ;
  369. CONNECT_UPDATE_PROFILE          equ     00000001h
  370. CONNECT_UPDATE_RECENT           equ     00000002h
  371. CONNECT_TEMPORARY               equ     00000004h
  372. CONNECT_INTERACTIVE             equ     00000008h
  373. CONNECT_PROMPT                  equ     00000010h
  374. CONNECT_NEED_DRIVE              equ     00000020h
  375. CONNECT_REFCOUNT                equ     00000040h
  376. CONNECT_REDIRECT                equ     00000080h
  377. CONNECT_LOCALDRIVE              equ     00000100h
  378. CONNECT_CURRENT_MEDIA           equ     00000200h
  379. ;
  380. NETPROPERTY_PERSISTENT          equ     1
  381. ;
  382. ;------------------------------------------------------------------------------
  383. ;
  384. ; ====================
  385. ; thread context flags
  386. ; ====================
  387. ;
  388. CONTEXT_i386                    equ     00010000h
  389. CONTEXT_i486                    equ     00010000h
  390. ;
  391. CONTEXT_CONTROL                 equ     CONTEXT_i386+00000001h
  392. CONTEXT_INTEGER                 equ     CONTEXT_i386+00000002h
  393. CONTEXT_SEGMENTS                equ     CONTEXT_i386+00000004h
  394. CONTEXT_FLOATING_POINT          equ     CONTEXT_i386+00000008h
  395. CONTEXT_DEBUG_REGISTERS         equ     CONTEXT_i386+00000010h
  396. ;
  397. CONTEXT_FULL                    equ     CONTEXT_CONTROL+\
  398.                                         CONTEXT_INTEGER+\
  399.                                         CONTEXT_SEGMENTS
  400. ;
  401. SIZE_OF_80387_REGISTERS         equ     80
  402. ;
  403. ;------------------------------------------------------------------------------
  404. ;
  405. ; ==========
  406. ; code pages
  407. ; ==========
  408. ;
  409. CP_ACP                          equ     0
  410. CP_OEMCP                        equ     1
  411. CP_MACCP                        equ     2
  412. ;
  413. ;------------------------------------------------------------------------------
  414. ;
  415. ; ============
  416. ; class styles
  417. ; ============
  418. ;
  419. CS_VREDRAW                      equ     00000001h
  420. CS_HREDRAW                      equ     00000002h
  421. CS_KEYCVTWINDOW                 equ     00000004h
  422. CS_DBLCLKS                      equ     00000008h
  423. CS_OWNDC                        equ     00000020h
  424. CS_CLASSDC                      equ     00000040h
  425. CS_PARENTDC                     equ     00000080h
  426. CS_NOKEYCVT                     equ     00000100h
  427. CS_NOCLOSE                      equ     00000200h
  428. CS_SAVEBITS                     equ     00000800h
  429. CS_BYTEALIGNCLIENT              equ     00001000h
  430. CS_BYTEALIGNWINDOW              equ     00002000h
  431. CS_GLOBALCLASS                  equ     00004000h
  432. CS_IME                          equ     00010000h
  433. ;
  434. ;------------------------------------------------------------------------------
  435. ;
  436. ; ===================
  437. ; control color types
  438. ; ===================
  439. ;
  440. CTLCOLOR_MSGBOX                 equ     0
  441. CTLCOLOR_EDIT                   equ     1
  442. CTLCOLOR_LISTBOX                equ     2
  443. CTLCOLOR_BTN                    equ     3
  444. CTLCOLOR_DLG                    equ     4
  445. CTLCOLOR_SCROLLBAR              equ     5
  446. CTLCOLOR_STATIC                 equ     6
  447. CTLCOLOR_MAX                    equ     7
  448. ;
  449. ;------------------------------------------------------------------------------
  450. ;
  451. ; =======================
  452. ; CreateWindow() commands
  453. ; =======================
  454. ;
  455. CW_USEDEFAULT                   equ     80000000h
  456. ;
  457. ;------------------------------------------------------------------------------
  458. ;
  459. ; ===================
  460. ; device capabilities
  461. ; ===================
  462. ;
  463. DC_FIELDS                       equ      1
  464. DC_PAPERS                       equ      2
  465. DC_PAPERSIZE                    equ      3
  466. DC_MINEXTENT                    equ      4
  467. DC_MAXEXTENT                    equ      5
  468. DC_BINS                         equ      6
  469. DC_DUPLEX                       equ      7
  470. DC_SIZE                         equ      8
  471. DC_EXTRA                        equ      9
  472. DC_VERSION                      equ     10
  473. DC_DRIVER                       equ     11
  474. DC_BINNAMES                     equ     12
  475. DC_ENUMRESOLUTIONS              equ     13
  476. DC_FILEDEPENDENCIES             equ     14
  477. DC_TRUETYPE                     equ     15
  478. DC_PAPERNAMES                   equ     16
  479. DC_ORIENTATION                  equ     17
  480. DC_COPIES                       equ     18
  481. ;
  482. ;------------------------------------------------------------------------------
  483. ;
  484. ; ====================
  485. ; dib color table id's
  486. ; ====================
  487. ;
  488. DIB_RGB_COLORS                  equ     0
  489. DIB_PAL_COLORS                  equ     1
  490. ;
  491. ;------------------------------------------------------------------------------
  492. ;
  493. ; ====================
  494. ; DLL LibMain() events
  495. ; ====================
  496. ;
  497. DLL_PROCESS_DETACH              equ     0
  498. DLL_PROCESS_ATTACH              equ     1
  499. DLL_THREAD_ATTACH               equ     2
  500. DLL_THREAD_DETACH               equ     3
  501. ;
  502. ;------------------------------------------------------------------------------
  503. ;
  504. ; ======================
  505. ; device mode selections
  506. ; ======================
  507. ;
  508. DM_UPDATE                       equ     1
  509. DM_COPY                         equ     2
  510. DM_PROMPT                       equ     4
  511. DM_MODIFY                       equ     8
  512. ;
  513. DM_IN_BUFFER                    equ     DM_MODIFY
  514. DM_IN_PROMPT                    equ     DM_PROMPT
  515. DM_OUT_BUFFER                   equ     DM_COPY
  516. DM_OUT_DEFAULT                  equ     DM_UPDATE
  517. ;
  518. ;------------------------------------------------------------------------------
  519. ;
  520. ; =============
  521. ; dialog styles
  522. ; =============
  523. ;
  524. DS_ABSALIGN                     equ     0001h
  525. DS_SYSMODAL                     equ     0002h
  526. DS_3DLOOK                       equ     0004h
  527. DS_FIXEDSYS                     equ     0008h
  528. DS_NOFAILCREATE                 equ     0010h
  529. DS_LOCALEDIT                    equ     0020h   ;edit items get local storage
  530. DS_SETFONT                      equ     0040h   ;user specified font
  531. DS_MODALFRAME                   equ     0080h   ;combinable with WS_CAPTION
  532. DS_NOIDLEMSG                    equ     0100h   ;don't send WM_ENTERIDLE
  533. DS_SETFOREGROUND                equ     0200h
  534. DS_CONTROL                      equ     0400h
  535. DS_CENTER                       equ     0800h
  536. DS_CENTERMOUSE                  equ     1000h
  537. DS_CONTEXTHELP                  equ     2000h
  538. ;
  539. DS_MODAL                        equ     DS_ABSALIGN+DS_MODALFRAME
  540. DS_MODELESS                     equ     DS_ABSALIGN
  541. ;
  542. ;------------------------------------------------------------------------------
  543. ;
  544. ; =======================
  545. ; DrawText() format flags
  546. ; =======================
  547. ;
  548. DT_TOP                          equ     00000000h
  549. DT_LEFT                         equ     00000000h
  550. DT_CENTER                       equ     00000001h
  551. DT_RIGHT                        equ     00000002h
  552. DT_VCENTER                      equ     00000004h
  553. DT_BOTTOM                       equ     00000008h
  554. DT_WORDBREAK                    equ     00000010h
  555. DT_SINGLELINE                   equ     00000020h
  556. DT_EXPANDTABS                   equ     00000040h
  557. DT_TABSTOP                      equ     00000080h
  558. DT_NOCLIP                       equ     00000100h
  559. DT_EXTERNALLEADING              equ     00000200h
  560. DT_CALCRECT                     equ     00000400h
  561. DT_NOPREFIX                     equ     00000800h
  562. DT_INTERNAL                     equ     00001000h
  563. DT_EDITCONTROL                  equ     00002000h
  564. DT_PATH_ELLIPSIS                equ     00004000h
  565. DT_END_ELLIPSIS                 equ     00008000h
  566. DT_MODIFYSTRING                 equ     00010000h
  567. DT_RTLREADING                   equ     00020000h
  568. DT_WORD_ELLIPSIS                equ     00040000h
  569. ;
  570. ;------------------------------------------------------------------------------
  571. ;
  572. ; =====================
  573. ; edit control messages
  574. ; =====================
  575. ;
  576. EM_GETSEL                       equ     00B0h
  577. EM_SETSEL                       equ     00B1h
  578. EM_GETRECT                      equ     00B2h
  579. EM_SETRECT                      equ     00B3h
  580. EM_SETRECTNP                    equ     00B4h
  581. EM_SCROLL                       equ     00B5h
  582. EM_LINESCROLL                   equ     00B6h
  583. EM_SCROLLCARET                  equ     00B7h
  584. EM_GETMODIFY                    equ     00B8h
  585. EM_SETMODIFY                    equ     00B9h
  586. EM_GETLINECOUNT                 equ     00BAh
  587. EM_LINEINDEX                    equ     00BBh
  588. EM_SETHANDLE                    equ     00BCh
  589. EM_GETHANDLE                    equ     00BDh
  590. EM_GETTHUMB                     equ     00BEh
  591. EM_LINELENGTH                   equ     00C1h
  592. EM_REPLACESEL                   equ     00C2h
  593. EM_GETLINE                      equ     00C4h
  594. EM_LIMITTEXT                    equ     00C5h
  595. EM_CANUNDO                      equ     00C6h
  596. EM_UNDO                         equ     00C7h
  597. EM_FMTLINES                     equ     00C8h
  598. EM_LINEFROMCHAR                 equ     00C9h
  599. EM_SETTABSTOPS                  equ     00CBh
  600. EM_SETPASSWORDCHAR              equ     00CCh
  601. EM_EMPTYUNDOBUFFER              equ     00CDh
  602. EM_GETFIRSTVISIBLELINE          equ     00CEh
  603. EM_SETREADONLY                  equ     00CFh
  604. EM_SETWORDBREAKPROC             equ     00D0h
  605. EM_GETWORDBREAKPROC             equ     00D1h
  606. EM_GETPASSWORDCHAR              equ     00D2h
  607. EM_SETMARGINS                   equ     00D3h
  608. EM_GETMARGINS                   equ     00D4h
  609. EM_GETLIMITTEXT                 equ     00D5h
  610. EM_POSFROMCHAR                  equ     00D6h
  611. EM_CHARFROMPOS                  equ     00D7h
  612. ;
  613. EM_SETLIMITTEXT                 equ     EM_LIMITTEXT
  614. ;
  615. ;------------------------------------------------------------------------------
  616. ;
  617. ; ==========================
  618. ; edit control notifications
  619. ; ==========================
  620. ;
  621. EN_SETFOCUS                     equ     0100h
  622. EN_KILLFOCUS                    equ     0200h
  623. EN_CHANGE                       equ     0300h
  624. EN_UPDATE                       equ     0400h
  625. EN_ERRSPACE                     equ     0500h
  626. EN_MAXTEXT                      equ     0501h
  627. EN_HSCROLL                      equ     0601h
  628. EN_VSCROLL                      equ     0602h
  629. ;
  630. ;------------------------------------------------------------------------------
  631. ;
  632. ; ===========
  633. ; error codes
  634. ; ===========
  635. ;
  636. ERROR_SUCCESS                           equ        0
  637. NO_ERROR                                equ        0
  638. ;
  639. ERROR_INVALID_FUNCTION                  equ        1
  640. ERROR_FILE_NOT_FOUND                    equ        2
  641. ERROR_PATH_NOT_FOUND                    equ        3
  642. ERROR_TOO_MANY_OPEN_FILES               equ        4
  643. ERROR_ACCESS_DENIED                     equ        5
  644. ERROR_INVALID_HANDLE                    equ        6
  645. ERROR_ARENA_TRASHED                     equ        7
  646. ERROR_NOT_ENOUGH_MEMORY                 equ        8
  647. ERROR_INVALID_BLOCK                     equ        9
  648. ERROR_BAD_ENVIRONMENT                   equ       10
  649. ERROR_BAD_FORMAT                        equ       11
  650. ERROR_INVALID_ACCESS                    equ       12
  651. ERROR_INVALID_DATA                      equ       13
  652. ERROR_OUTOFMEMORY                       equ       14
  653. ERROR_INVALID_DRIVE                     equ       15
  654. ERROR_CURRENT_DIRECTORY                 equ       16
  655. ERROR_NOT_SAME_DEVICE                   equ       17
  656. ERROR_NO_MORE_FILES                     equ       18
  657. ERROR_WRITE_PROTECT                     equ       19
  658. ERROR_BAD_UNIT                          equ       20
  659. ERROR_NOT_READY                         equ       21
  660. ERROR_BAD_COMMAND                       equ       22
  661. ERROR_CRC                               equ       23
  662. ERROR_BAD_LENGTH                        equ       24
  663. ERROR_SEEK                              equ       25
  664. ERROR_NOT_DOS_DISK                      equ       26
  665. ERROR_SECTOR_NOT_FOUND                  equ       27
  666. ERROR_OUT_OF_PAPER                      equ       28
  667. ERROR_WRITE_FAULT                       equ       29
  668. ERROR_READ_FAULT                        equ       30
  669. ERROR_GEN_FAILURE                       equ       31
  670. ERROR_SHARING_VIOLATION                 equ       32
  671. ERROR_LOCK_VIOLATION                    equ       33
  672. ERROR_WRONG_DISK                        equ       34
  673. ERROR_SHARING_BUFFER_EXCEEDED           equ       36
  674. ERROR_HANDLE_EOF                        equ       38
  675. ERROR_HANDLE_DISK_FULL                  equ       39
  676. ERROR_NOT_SUPPORTED                     equ       50
  677. ERROR_REM_NOT_LIST                      equ       51
  678. ERROR_DUP_NAME                          equ       52
  679. ERROR_BAD_NETPATH                       equ       53
  680. ERROR_NETWORK_BUSY                      equ       54
  681. ERROR_DEV_NOT_EXIST                     equ       55
  682. ERROR_TOO_MANY_CMDS                     equ       56
  683. ERROR_ADAP_HDW_ERR                      equ       57
  684. ERROR_BAD_NET_RESP                      equ       58
  685. ERROR_UNEXP_NET_ERR                     equ       59
  686. ERROR_BAD_REM_ADAP                      equ       60
  687. ERROR_PRINTQ_FULL                       equ       61
  688. ERROR_NO_SPOOL_SPACE                    equ       62
  689. ERROR_PRINT_CANCELLED                   equ       63
  690. ERROR_NETNAME_DELETED                   equ       64
  691. ERROR_NETWORK_ACCESS_DENIED             equ       65
  692. ERROR_BAD_DEV_TYPE                      equ       66
  693. ERROR_BAD_NET_NAME                      equ       67
  694. ERROR_TOO_MANY_NAMES                    equ       68
  695. ERROR_TOO_MANY_SESS                     equ       69
  696. ERROR_SHARING_PAUSED                    equ       70
  697. ERROR_REQ_NOT_ACCEP                     equ       71
  698. ERROR_REDIR_PAUSED                      equ       72
  699. ERROR_FILE_EXISTS                       equ       80
  700. ERROR_CANNOT_MAKE                       equ       82
  701. ERROR_FAIL_I24                          equ       83
  702. ERROR_OUT_OF_STRUCTURES                 equ       84
  703. ERROR_ALREADY_ASSIGNED                  equ       85
  704. ERROR_INVALID_PASSWORD                  equ       86
  705. ERROR_INVALID_PARAMETER                 equ       87
  706. ERROR_NET_WRITE_FAULT                   equ       88
  707. ERROR_NO_PROC_SLOTS                     equ       89
  708. ERROR_TOO_MANY_SEMAPHORES               equ      100
  709. ERROR_EXCL_SEM_ALREADY_OWNED            equ      101
  710. ERROR_SEM_IS_SET                        equ      102
  711. ERROR_TOO_MANY_SEM_REQUESTS             equ      103
  712. ERROR_INVALID_AT_INTERRUPT_TIME         equ      104
  713. ERROR_SEM_OWNER_DIED                    equ      105
  714. ERROR_SEM_USER_LIMIT                    equ      106
  715. ERROR_DISK_CHANGE                       equ      107
  716. ERROR_DRIVE_LOCKED                      equ      108
  717. ERROR_BROKEN_PIPE                       equ      109
  718. ERROR_OPEN_FAILED                       equ      110
  719. ERROR_BUFFER_OVERFLOW                   equ      111
  720. ERROR_DISK_FULL                         equ      112
  721. ERROR_NO_MORE_SEARCH_HANDLES            equ      113
  722. ERROR_INVALID_TARGET_HANDLE             equ      114
  723. ERROR_INVALID_CATEGORY                  equ      117
  724. ERROR_INVALID_VERIFY_SWITCH             equ      118
  725. ERROR_BAD_DRIVER_LEVEL                  equ      119
  726. ERROR_CALL_NOT_IMPLEMENTED              equ      120
  727. ERROR_SEM_TIMEOUT                       equ      121
  728. ERROR_INSUFFICIENT_BUFFER               equ      122
  729. ERROR_INVALID_NAME                      equ      123
  730. ERROR_INVALID_LEVEL                     equ      124
  731. ERROR_NO_VOLUME_LABEL                   equ      125
  732. ERROR_MOD_NOT_FOUND                     equ      126
  733. ERROR_PROC_NOT_FOUND                    equ      127
  734. ERROR_WAIT_NO_CHILDREN                  equ      128
  735. ERROR_CHILD_NOT_COMPLETE                equ      129
  736. ERROR_DIRECT_ACCESS_HANDLE              equ      130
  737. ERROR_NEGATIVE_SEEK                     equ      131
  738. ERROR_SEEK_ON_DEVICE                    equ      132
  739. ERROR_IS_JOIN_TARGET                    equ      133
  740. ERROR_IS_JOINED                         equ      134
  741. ERROR_IS_SUBSTED                        equ      135
  742. ERROR_NOT_JOINED                        equ      136
  743. ERROR_NOT_SUBSTED                       equ      137
  744. ERROR_JOIN_TO_JOIN                      equ      138
  745. ERROR_SUBST_TO_SUBST                    equ      139
  746. ERROR_JOIN_TO_SUBST                     equ      140
  747. ERROR_SUBST_TO_JOIN                     equ      141
  748. ERROR_BUSY_DRIVE                        equ      142
  749. ERROR_SAME_DRIVE                        equ      143
  750. ERROR_DIR_NOT_ROOT                      equ      144
  751. ERROR_DIR_NOT_EMPTY                     equ      145
  752. ERROR_IS_SUBST_PATH                     equ      146
  753. ERROR_IS_JOIN_PATH                      equ      147
  754. ERROR_PATH_BUSY                         equ      148
  755. ERROR_IS_SUBST_TARGET                   equ      149
  756. ERROR_SYSTEM_TRACE                      equ      150
  757. ERROR_INVALID_EVENT_COUNT               equ      151
  758. ERROR_TOO_MANY_MUXWAITERS               equ      152
  759. ERROR_INVALID_LIST_FORMAT               equ      153
  760. ERROR_LABEL_TOO_LONG                    equ      154
  761. ERROR_TOO_MANY_TCBS                     equ      155
  762. ERROR_SIGNAL_REFUSED                    equ      156
  763. ERROR_DISCARDED                         equ      157
  764. ERROR_NOT_LOCKED                        equ      158
  765. ERROR_BAD_THREADID_ADDR                 equ      159
  766. ERROR_BAD_ARGUMENTS                     equ      160
  767. ERROR_BAD_PATHNAME                      equ      161
  768. ERROR_SIGNAL_PENDING                    equ      162
  769. ERROR_MAX_THRDS_REACHED                 equ      164
  770. ERROR_LOCK_FAILED                       equ      167
  771. ERROR_BUSY                              equ      170
  772. ERROR_CANCEL_VIOLATION                  equ      173
  773. ERROR_ATOMIC_LOCKS_NOT_SUPPORTED        equ      174
  774. ERROR_INVALID_SEGMENT_NUMBER            equ      180
  775. ERROR_INVALID_ORDINAL                   equ      182
  776. ERROR_ALREADY_EXISTS                    equ      183
  777. ERROR_INVALID_FLAG_NUMBER               equ      186
  778. ERROR_SEM_NOT_FOUND                     equ      187
  779. ERROR_INVALID_STARTING_CODESEG          equ      188
  780. ERROR_INVALID_STACKSEG                  equ      189
  781. ERROR_INVALID_MODULETYPE                equ      190
  782. ERROR_INVALID_EXE_SIGNATURE             equ      191
  783. ERROR_EXE_MARKED_INVALID                equ      192
  784. ERROR_BAD_EXE_FORMAT                    equ      193
  785. ERROR_ITERATED_DATA_EXCEEDS_64k         equ      194
  786. ERROR_INVALID_MINALLOCSIZE              equ      195
  787. ERROR_DYNLINK_FROM_INVALID_RING         equ      196
  788. ERROR_IOPL_NOT_ENABLED                  equ      197
  789. ERROR_INVALID_SEGDPL                    equ      198
  790. ERROR_AUTODATASEG_EXCEEDS_64k           equ      199
  791. ERROR_RING2SEG_MUST_BE_MOVABLE          equ      200
  792. ERROR_RELOC_CHAIN_XEEDS_SEGLIM          equ      201
  793. ERROR_INFLOOP_IN_RELOC_CHAIN            equ      202
  794. ERROR_ENVVAR_NOT_FOUND                  equ      203
  795. ERROR_NO_SIGNAL_SENT                    equ      205
  796. ERROR_FILENAME_EXCED_RANGE              equ      206
  797. ERROR_RING2_STACK_IN_USE                equ      207
  798. ERROR_META_EXPANSION_TOO_LONG           equ      208
  799. ERROR_INVALID_SIGNAL_NUMBER             equ      209
  800. ERROR_THREAD_1_INACTIVE                 equ      210
  801. ERROR_LOCKED                            equ      212
  802. ERROR_TOO_MANY_MODULES                  equ      214
  803. ERROR_NESTING_NOT_ALLOWED               equ      215
  804. ERROR_BAD_PIPE                          equ      230
  805. ERROR_PIPE_BUSY                         equ      231
  806. ERROR_NO_DATA                           equ      232
  807. ERROR_PIPE_NOT_CONNECTED                equ      233
  808. ERROR_MORE_DATA                         equ      234
  809. ERROR_VC_DISCONNECTED                   equ      240
  810. ERROR_INVALID_EA_NAME                   equ      254
  811. ERROR_EA_LIST_INCONSISTENT              equ      255
  812. ERROR_NO_MORE_ITEMS                     equ      259
  813. ERROR_CANNOT_COPY                       equ      266
  814. ERROR_DIRECTORY                         equ      267
  815. ERROR_EAS_DIDNT_FIT                     equ      275
  816. ERROR_EA_FILE_CORRUPT                   equ      276
  817. ERROR_EA_TABLE_FULL                     equ      277
  818. ERROR_INVALID_EA_HANDLE                 equ      278
  819. ERROR_EAS_NOT_SUPPORTED                 equ      282
  820. ERROR_NOT_OWNER                         equ      288
  821. ERROR_TOO_MANY_POSTS                    equ      298
  822. ERROR_PARTIAL_COPY                      equ      299
  823. ERROR_MR_MID_NOT_FOUND                  equ      317
  824. ERROR_INVALID_ADDRESS                   equ      487
  825. ERROR_ARITHMETIC_OVERFLOW               equ      534
  826. ERROR_PIPE_CONNECTED                    equ      535
  827. ERROR_PIPE_LISTENING                    equ      536
  828. ERROR_EA_ACCESS_DENIED                  equ      994
  829. ERROR_OPERATION_ABORTED                 equ      995
  830. ERROR_IO_INCOMPLETE                     equ      996
  831. ERROR_IO_PENDING                        equ      997
  832. ERROR_NOACCESS                          equ      998
  833. ERROR_SWAPERROR                         equ      999
  834. ERROR_STACK_OVERFLOW                    equ     1001
  835. ERROR_INVALID_MESSAGE                   equ     1002
  836. ERROR_CAN_NOT_COMPLETE                  equ     1003
  837. ERROR_INVALID_FLAGS                     equ     1004
  838. ERROR_UNRECOGNIZED_VOLUME               equ     1005
  839. ERROR_FILE_INVALID                      equ     1006
  840. ERROR_FULLSCREEN_MODE                   equ     1007
  841. ERROR_NO_TOKEN                          equ     1008
  842. ERROR_BADDB                             equ     1009
  843. ERROR_BADKEY                            equ     1010
  844. ERROR_CANTOPEN                          equ     1011
  845. ERROR_CANTREAD                          equ     1012
  846. ERROR_CANTWRITE                         equ     1013
  847. ERROR_REGISTRY_RECOVERED                equ     1014
  848. ERROR_REGISTRY_CORRUPT                  equ     1015
  849. ERROR_REGISTRY_IO_FAILED                equ     1016
  850. ERROR_NOT_REGISTRY_FILE                 equ     1017
  851. ERROR_KEY_DELETED                       equ     1018
  852. ERROR_NO_LOG_SPACE                      equ     1019
  853. ERROR_KEY_HAS_CHILDREN                  equ     1020
  854. ERROR_CHILD_MUST_BE_VOLATILE            equ     1021
  855. ERROR_NOTIFY_ENUM_DIR                   equ     1022
  856. ERROR_DEPENDENT_SERVICES_RUNNING        equ     1051
  857. ERROR_INVALID_SERVICE_CONTROL           equ     1052
  858. ERROR_SERVICE_REQUEST_TIMEOUT           equ     1053
  859. ERROR_SERVICE_NO_THREAD                 equ     1054
  860. ERROR_SERVICE_DATABASE_LOCKED           equ     1055
  861. ERROR_SERVICE_ALREADY_RUNNING           equ     1056
  862. ERROR_INVALID_SERVICE_ACCOUNT           equ     1057
  863. ERROR_SERVICE_DISABLED                  equ     1058
  864. ERROR_CIRCULAR_DEPENDENCY               equ     1059
  865. ERROR_SERVICE_DOES_NOT_EXIST            equ     1060
  866. ERROR_SERVICE_CANNOT_ACCEPT_CTRL        equ     1061
  867. ERROR_SERVICE_NOT_ACTIVE                equ     1062
  868. ERROR_FAILED_SERVICE_CONTROLLER_CONNECT equ     1063
  869. ERROR_EXCEPTION_IN_SERVICE              equ     1064
  870. ERROR_DATABASE_DOES_NOT_EXIST           equ     1065
  871. ERROR_SERVICE_SPECIFIC_ERROR            equ     1066
  872. ERROR_PROCESS_ABORTED                   equ     1067
  873. ERROR_SERVICE_DEPENDENCY_FAIL           equ     1068
  874. ERROR_SERVICE_LOGON_FAILED              equ     1069
  875. ERROR_SERVICE_START_HANG                equ     1070
  876. ERROR_INVALID_SERVICE_LOCK              equ     1071
  877. ERROR_SERVICE_MARKED_FOR_DELETE         equ     1072
  878. ERROR_SERVICE_EXISTS                    equ     1073
  879. ERROR_ALREADY_RUNNING_LKG               equ     1074
  880. ERROR_SERVICE_DEPENDENCY_DELETED        equ     1075
  881. ERROR_BOOT_ALREADY_ACCEPTED             equ     1076
  882. ERROR_SERVICE_NEVER_STARTED             equ     1077
  883. ERROR_DUPLICATE_SERVICE_NAME            equ     1078
  884. ERROR_END_OF_MEDIA                      equ     1100
  885. ERROR_FILEMARK_DETECTED                 equ     1101
  886. ERROR_BEGINNING_OF_MEDIA                equ     1102
  887. ERROR_SETMARK_DETECTED                  equ     1103
  888. ERROR_NO_DATA_DETECTED                  equ     1104
  889. ERROR_PARTITION_FAILURE                 equ     1105
  890. ERROR_INVALID_BLOCK_LENGTH              equ     1106
  891. ERROR_DEVICE_NOT_PARTITIONED            equ     1107
  892. ERROR_UNABLE_TO_LOCK_MEDIA              equ     1108
  893. ERROR_UNABLE_TO_UNLOAD_MEDIA            equ     1109
  894. ERROR_MEDIA_CHANGED                     equ     1110
  895. ERROR_BUS_RESET                         equ     1111
  896. ERROR_NO_MEDIA_IN_DRIVE                 equ     1112
  897. ERROR_NO_UNICODE_TRANSLATION            equ     1113
  898. ERROR_DLL_INIT_FAILED                   equ     1114
  899. ERROR_SHUTDOWN_IN_PROGRESS              equ     1115
  900. ERROR_NO_SHUTDOWN_IN_PROGRESS           equ     1116
  901. ERROR_IO_DEVICE                         equ     1117
  902. ERROR_SERIAL_NO_DEVICE                  equ     1118
  903. ERROR_IRQ_BUSY                          equ     1119
  904. ERROR_MORE_WRITES                       equ     1120
  905. ERROR_COUNTER_TIMEOUT                   equ     1121
  906. ERROR_FLOPPY_ID_MARK_NOT_FOUND          equ     1122
  907. ERROR_FLOPPY_WRONG_CYLINDER             equ     1123
  908. ERROR_FLOPPY_UNKNOWN_ERROR              equ     1124
  909. ERROR_FLOPPY_BAD_REGISTERS              equ     1125
  910. ERROR_DISK_RECALIBRATE_FAILED           equ     1126
  911. ERROR_DISK_OPERATION_FAILED             equ     1127
  912. ERROR_DISK_RESET_FAILED                 equ     1128
  913. ERROR_EOM_OVERFLOW                      equ     1129
  914. ERROR_NOT_ENOUGH_SERVER_MEMORY          equ     1130
  915. ERROR_POSSIBLE_DEADLOCK                 equ     1131
  916. ERROR_MAPPED_ALIGNMENT                  equ     1132
  917. ERROR_SET_POWER_STATE_VETOED            equ     1140
  918. ERROR_SET_POWER_STATE_FAILED            equ     1141
  919. ERROR_OLD_WIN_VERSION                   equ     1150
  920. ERROR_APP_WRONG_OS                      equ     1151
  921. ERROR_SINGLE_INSTANCE_APP               equ     1152
  922. ERROR_RMODE_APP                         equ     1153
  923. ERROR_INVALID_DLL                       equ     1154
  924. ERROR_NO_ASSOCIATION                    equ     1155
  925. ERROR_DDE_FAIL                          equ     1156
  926. ERROR_DLL_NOT_FOUND                     equ     1157
  927. ERROR_BAD_USERNAME                      equ     2202
  928. ERROR_NOT_CONNECTED                     equ     2250
  929. ERROR_OPEN_FILES                        equ     2401
  930. ERROR_ACTIVE_CONNECTIONS                equ     2402
  931. ERROR_DEVICE_IN_USE                     equ     2404
  932. ERROR_BAD_DEVICE                        equ     1200
  933. ERROR_CONNECTION_UNAVAIL                equ     1201
  934. ERROR_DEVICE_ALREADY_REMEMBERED         equ     1202
  935. ERROR_NO_NET_OR_BAD_PATH                equ     1203
  936. ERROR_BAD_PROVIDER                      equ     1204
  937. ERROR_CANNOT_OPEN_PROFILE               equ     1205
  938. ERROR_BAD_PROFILE                       equ     1206
  939. ERROR_NOT_CONTAINER                     equ     1207
  940. ERROR_EXTENDED_ERROR                    equ     1208
  941. ERROR_INVALID_GROUPNAME                 equ     1209
  942. ERROR_INVALID_COMPUTERNAME              equ     1210
  943. ERROR_INVALID_EVENTNAME                 equ     1211
  944. ERROR_INVALID_DOMAINNAME                equ     1212
  945. ERROR_INVALID_SERVICENAME               equ     1213
  946. ERROR_INVALID_NETNAME                   equ     1214
  947. ERROR_INVALID_SHARENAME                 equ     1215
  948. ERROR_INVALID_PASSWORDNAME              equ     1216
  949. ERROR_INVALID_MESSAGENAME               equ     1217
  950. ERROR_INVALID_MESSAGEDEST               equ     1218
  951. ERROR_SESSION_CREDENTIAL_CONFLICT       equ     1219
  952. ERROR_REMOTE_SESSION_LIMIT_EXCEEDED     equ     1220
  953. ERROR_DUP_DOMAINNAME                    equ     1221
  954. ERROR_NO_NETWORK                        equ     1222
  955. ERROR_CANCELLED                         equ     1223
  956. ERROR_USER_MAPPED_FILE                  equ     1224
  957. ERROR_CONNECTION_REFUSED                equ     1225
  958. ERROR_GRACEFUL_DISCONNECT               equ     1226
  959. ERROR_ADDRESS_ALREADY_ASSOCIATED        equ     1227
  960. ERROR_ADDRESS_NOT_ASSOCIATED            equ     1228
  961. ERROR_CONNECTION_INVALID                equ     1229
  962. ERROR_CONNECTION_ACTIVE                 equ     1230
  963. ERROR_NETWORK_UNREACHABLE               equ     1231
  964. ERROR_HOST_UNREACHABLE                  equ     1232
  965. ERROR_PROTOCOL_UNREACHABLE              equ     1233
  966. ERROR_PORT_UNREACHABLE                  equ     1234
  967. ERROR_REQUEST_ABORTED                   equ     1235
  968. ERROR_CONNECTION_ABORTED                equ     1236
  969. ERROR_RETRY                             equ     1237
  970. ERROR_CONNECTION_COUNT_LIMIT            equ     1238
  971. ERROR_LOGIN_TIME_RESTRICTION            equ     1239
  972. ERROR_LOGIN_WKSTA_RESTRICTION           equ     1240
  973. ERROR_INCORRECT_ADDRESS                 equ     1241
  974. ERROR_ALREADY_REGISTERED                equ     1242
  975. ERROR_SERVICE_NOT_FOUND                 equ     1243
  976. ERROR_NOT_AUTHENTICATED                 equ     1244
  977. ERROR_NOT_LOGGED_ON                     equ     1245
  978. ERROR_CONTINUE                          equ     1246
  979. ERROR_ALREADY_INITIALIZED               equ     1247
  980. ERROR_NO_MORE_DEVICES                   equ     1248
  981. ERROR_NOT_ALL_ASSIGNED                  equ     1300
  982. ERROR_SOME_NOT_MAPPED                   equ     1301
  983. ERROR_NO_QUOTAS_FOR_ACCOUNT             equ     1302
  984. ERROR_LOCAL_USER_SESSION_KEY            equ     1303
  985. ERROR_NULL_LM_PASSWORD                  equ     1304
  986. ERROR_UNKNOWN_REVISION                  equ     1305
  987. ERROR_REVISION_MISMATCH                 equ     1306
  988. ERROR_INVALID_OWNER                     equ     1307
  989. ERROR_INVALID_PRIMARY_GROUP             equ     1308
  990. ERROR_NO_IMPERSONATION_TOKEN            equ     1309
  991. ERROR_CANT_DISABLE_MANDATORY            equ     1310
  992. ERROR_NO_LOGON_SERVERS                  equ     1311
  993. ERROR_NO_SUCH_LOGON_SESSION             equ     1312
  994. ERROR_NO_SUCH_PRIVILEGE                 equ     1313
  995. ERROR_PRIVILEGE_NOT_HELD                equ     1314
  996. ERROR_INVALID_ACCOUNT_NAME              equ     1315
  997. ERROR_USER_EXISTS                       equ     1316
  998. ERROR_NO_SUCH_USER                      equ     1317
  999. ERROR_GROUP_EXISTS                      equ     1318
  1000. ERROR_NO_SUCH_GROUP                     equ     1319
  1001. ERROR_MEMBER_IN_GROUP                   equ     1320
  1002. ERROR_MEMBER_NOT_IN_GROUP               equ     1321
  1003. ERROR_LAST_ADMIN                        equ     1322
  1004. ERROR_WRONG_PASSWORD                    equ     1323
  1005. ERROR_ILL_FORMED_PASSWORD               equ     1324
  1006. ERROR_PASSWORD_RESTRICTION              equ     1325
  1007. ERROR_LOGON_FAILURE                     equ     1326
  1008. ERROR_ACCOUNT_RESTRICTION               equ     1327
  1009. ERROR_INVALID_LOGON_HOURS               equ     1328
  1010. ERROR_INVALID_WORKSTATION               equ     1329
  1011. ERROR_PASSWORD_EXPIRED                  equ     1330
  1012. ERROR_ACCOUNT_DISABLED                  equ     1331
  1013. ERROR_NONE_MAPPED                       equ     1332
  1014. ERROR_TOO_MANY_LUIDS_REQUESTED          equ     1333
  1015. ERROR_LUIDS_EXHAUSTED                   equ     1334
  1016. ERROR_INVALID_SUB_AUTHORITY             equ     1335
  1017. ERROR_INVALID_ACL                       equ     1336
  1018. ERROR_INVALID_SID                       equ     1337
  1019. ERROR_INVALID_SECURITY_DESCR            equ     1338
  1020. ERROR_BAD_INHERITANCE_ACL               equ     1340
  1021. ERROR_SERVER_DISABLED                   equ     1341
  1022. ERROR_SERVER_NOT_DISABLED               equ     1342
  1023. ERROR_INVALID_ID_AUTHORITY              equ     1343
  1024. ERROR_ALLOTTED_SPACE_EXCEEDED           equ     1344
  1025. ERROR_INVALID_GROUP_ATTRIBUTES          equ     1345
  1026. ERROR_BAD_IMPERSONATION_LEVEL           equ     1346
  1027. ERROR_CANT_OPEN_ANONYMOUS               equ     1347
  1028. ERROR_BAD_VALIDATION_CLASS              equ     1348
  1029. ERROR_BAD_TOKEN_TYPE                    equ     1349
  1030. ERROR_NO_SECURITY_ON_OBJECT             equ     1350
  1031. ERROR_CANT_ACCESS_DOMAIN_INFO           equ     1351
  1032. ERROR_INVALID_SERVER_STATE              equ     1352
  1033. ERROR_INVALID_DOMAIN_STATE              equ     1353
  1034. ERROR_INVALID_DOMAIN_ROLE               equ     1354
  1035. ERROR_NO_SUCH_DOMAIN                    equ     1355
  1036. ERROR_DOMAIN_EXISTS                     equ     1356
  1037. ERROR_DOMAIN_LIMIT_EXCEEDED             equ     1357
  1038. ERROR_INTERNAL_DB_CORRUPTION            equ     1358
  1039. ERROR_INTERNAL_ERROR                    equ     1359
  1040. ERROR_GENERIC_NOT_MAPPED                equ     1360
  1041. ERROR_BAD_DESCRIPTOR_FORMAT             equ     1361
  1042. ERROR_NOT_LOGON_PROCESS                 equ     1362
  1043. ERROR_LOGON_SESSION_EXISTS              equ     1363
  1044. ERROR_NO_SUCH_PACKAGE                   equ     1364
  1045. ERROR_BAD_LOGON_SESSION_STATE           equ     1365
  1046. ERROR_LOGON_SESSION_COLLISION           equ     1366
  1047. ERROR_INVALID_LOGON_TYPE                equ     1367
  1048. ERROR_CANNOT_IMPERSONATE                equ     1368
  1049. ERROR_RXACT_INVALID_STATE               equ     1369
  1050. ERROR_RXACT_COMMIT_FAILURE              equ     1370
  1051. ERROR_SPECIAL_ACCOUNT                   equ     1371
  1052. ERROR_SPECIAL_GROUP                     equ     1372
  1053. ERROR_SPECIAL_USER                      equ     1373
  1054. ERROR_MEMBERS_PRIMARY_GROUP             equ     1374
  1055. ERROR_TOKEN_ALREADY_IN_USE              equ     1375
  1056. ERROR_NO_SUCH_ALIAS                     equ     1376
  1057. ERROR_MEMBER_NOT_IN_ALIAS               equ     1377
  1058. ERROR_MEMBER_IN_ALIAS                   equ     1378
  1059. ERROR_ALIAS_EXISTS                      equ     1379
  1060. ERROR_LOGON_NOT_GRANTED                 equ     1380
  1061. ERROR_TOO_MANY_SECRETS                  equ     1381
  1062. ERROR_SECRET_TOO_LONG                   equ     1382
  1063. ERROR_INTERNAL_DB_ERROR                 equ     1383
  1064. ERROR_TOO_MANY_CONTEXT_IDS              equ     1384
  1065. ERROR_LOGON_TYPE_NOT_GRANTED            equ     1385
  1066. ERROR_NT_CROSS_ENCRYPTION_REQUIRED      equ     1386
  1067. ERROR_NO_SUCH_MEMBER                    equ     1387
  1068. ERROR_INVALID_MEMBER                    equ     1388
  1069. ERROR_TOO_MANY_SIDS                     equ     1389
  1070. ERROR_LM_CROSS_ENCRYPTION_REQUIRED      equ     1390
  1071. ERROR_NO_INHERITANCE                    equ     1391
  1072. ERROR_FILE_CORRUPT                      equ     1392
  1073. ERROR_DISK_CORRUPT                      equ     1393
  1074. ERROR_NO_USER_SESSION_KEY               equ     1394
  1075. ERROR_LICENSE_QUOTA_EXCEEDED            equ     1395
  1076. ERROR_INVALID_WINDOW_HANDLE             equ     1400
  1077. ERROR_INVALID_MENU_HANDLE               equ     1401
  1078. ERROR_INVALID_CURSOR_HANDLE             equ     1402
  1079. ERROR_INVALID_ACCEL_HANDLE              equ     1403
  1080. ERROR_INVALID_HOOK_HANDLE               equ     1404
  1081. ERROR_INVALID_DWP_HANDLE                equ     1405
  1082. ERROR_TLW_WITH_WSCHILD                  equ     1406
  1083. ERROR_CANNOT_FIND_WND_CLASS             equ     1407
  1084. ERROR_WINDOW_OF_OTHER_THREAD            equ     1408
  1085. ERROR_HOTKEY_ALREADY_REGISTERED         equ     1409
  1086. ERROR_CLASS_ALREADY_EXISTS              equ     1410
  1087. ERROR_CLASS_DOES_NOT_EXIST              equ     1411
  1088. ERROR_CLASS_HAS_WINDOWS                 equ     1412
  1089. ERROR_INVALID_INDEX                     equ     1413
  1090. ERROR_INVALID_ICON_HANDLE               equ     1414
  1091. ERROR_PRIVATE_DIALOG_INDEX              equ     1415
  1092. ERROR_LISTBOX_ID_NOT_FOUND              equ     1416
  1093. ERROR_NO_WILDCARD_CHARACTERS            equ     1417
  1094. ERROR_CLIPBOARD_NOT_OPEN                equ     1418
  1095. ERROR_HOTKEY_NOT_REGISTERED             equ     1419
  1096. ERROR_WINDOW_NOT_DIALOG                 equ     1420
  1097. ERROR_CONTROL_ID_NOT_FOUND              equ     1421
  1098. ERROR_INVALID_COMBOBOX_MESSAGE          equ     1422
  1099. ERROR_WINDOW_NOT_COMBOBOX               equ     1423
  1100. ERROR_INVALID_EDIT_HEIGHT               equ     1424
  1101. ERROR_DC_NOT_FOUND                      equ     1425
  1102. ERROR_INVALID_HOOK_FILTER               equ     1426
  1103. ERROR_INVALID_FILTER_PROC               equ     1427
  1104. ERROR_HOOK_NEEDS_HMOD                   equ     1428
  1105. ERROR_GLOBAL_ONLY_HOOK                  equ     1429
  1106. ERROR_JOURNAL_HOOK_SET                  equ     1430
  1107. ERROR_HOOK_NOT_INSTALLED                equ     1431
  1108. ERROR_INVALID_LB_MESSAGE                equ     1432
  1109. ERROR_SETCOUNT_ON_BAD_LB                equ     1433
  1110. ERROR_LB_WITHOUT_TABSTOPS               equ     1434
  1111. ERROR_DESTROY_OBJECT_OF_OTHER_THREAD    equ     1435
  1112. ERROR_CHILD_WINDOW_MENU                 equ     1436
  1113. ERROR_NO_SYSTEM_MENU                    equ     1437
  1114. ERROR_INVALID_MSGBOX_STYLE              equ     1438
  1115. ERROR_INVALID_SPI_VALUE                 equ     1439
  1116. ERROR_SCREEN_ALREADY_LOCKED             equ     1440
  1117. ERROR_HWNDS_HAVE_DIFF_PARENT            equ     1441
  1118. ERROR_NOT_CHILD_WINDOW                  equ     1442
  1119. ERROR_INVALID_GW_COMMAND                equ     1443
  1120. ERROR_INVALID_THREAD_ID                 equ     1444
  1121. ERROR_NON_MDICHILD_WINDOW               equ     1445
  1122. ERROR_POPUP_ALREADY_ACTIVE              equ     1446
  1123. ERROR_NO_SCROLLBARS                     equ     1447
  1124. ERROR_INVALID_SCROLLBAR_RANGE           equ     1448
  1125. ERROR_INVALID_SHOWWIN_COMMAND           equ     1449
  1126. ERROR_NO_SYSTEM_RESOURCES               equ     1450
  1127. ERROR_NONPAGED_SYSTEM_RESOURCES         equ     1451
  1128. ERROR_PAGED_SYSTEM_RESOURCES            equ     1452
  1129. ERROR_WORKING_SET_QUOTA                 equ     1453
  1130. ERROR_PAGEFILE_QUOTA                    equ     1454
  1131. ERROR_COMMITMENT_LIMIT                  equ     1455
  1132. ERROR_MENU_ITEM_NOT_FOUND               equ     1456
  1133. ERROR_EVENTLOG_FILE_CORRUPT             equ     1500
  1134. ERROR_EVENTLOG_CANT_START               equ     1501
  1135. ERROR_LOG_FILE_FULL                     equ     1502
  1136. ERROR_EVENTLOG_FILE_CHANGED             equ     1503
  1137. ERROR_INVALID_USER_BUFFER               equ     1784
  1138. ERROR_UNRECOGNIZED_MEDIA                equ     1785
  1139. ERROR_NO_TRUST_LSA_SECRET               equ     1786
  1140. ERROR_NO_TRUST_SAM_ACCOUNT              equ     1787
  1141. ERROR_TRUSTED_DOMAIN_FAILURE            equ     1788
  1142. ERROR_TRUSTED_RELATIONSHIP_FAILURE      equ     1789
  1143. ERROR_TRUST_FAILURE                     equ     1790
  1144. ERROR_NETLOGON_NOT_STARTED              equ     1792
  1145. ERROR_ACCOUNT_EXPIRED                   equ     1793
  1146. ERROR_REDIRECTOR_HAS_OPEN_HANDLES       equ     1794
  1147. ERROR_PRINTER_DRIVER_ALREADY_INSTALLED  equ     1795
  1148. ERROR_UNKNOWN_PORT                      equ     1796
  1149. ERROR_UNKNOWN_PRINTER_DRIVER            equ     1797
  1150. ERROR_UNKNOWN_PRINTPROCESSOR            equ     1798
  1151. ERROR_INVALID_SEPARATOR_FILE            equ     1799
  1152. ERROR_INVALID_PRIORITY                  equ     1800
  1153. ERROR_INVALID_PRINTER_NAME              equ     1801
  1154. ERROR_PRINTER_ALREADY_EXISTS            equ     1802
  1155. ERROR_INVALID_PRINTER_COMMAND           equ     1803
  1156. ERROR_INVALID_DATATYPE                  equ     1804
  1157. ERROR_INVALID_ENVIRONMENT               equ     1805
  1158. ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT equ     1807
  1159. ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT equ     1808
  1160. ERROR_NOLOGON_SERVER_TRUST_ACCOUNT      equ     1809
  1161. ERROR_DOMAIN_TRUST_INCONSISTENT         equ     1810
  1162. ERROR_SERVER_HAS_OPEN_HANDLES           equ     1811
  1163. ERROR_RESOURCE_DATA_NOT_FOUND           equ     1812
  1164. ERROR_RESOURCE_TYPE_NOT_FOUND           equ     1813
  1165. ERROR_RESOURCE_NAME_NOT_FOUND           equ     1814
  1166. ERROR_RESOURCE_LANG_NOT_FOUND           equ     1815
  1167. ERROR_NOT_ENOUGH_QUOTA                  equ     1816
  1168. ERROR_INVALID_TIME                      equ     1901
  1169. ERROR_INVALID_FORM_NAME                 equ     1902
  1170. ERROR_INVALID_FORM_SIZE                 equ     1903
  1171. ERROR_ALREADY_WAITING                   equ     1904
  1172. ERROR_PRINTER_DELETED                   equ     1905
  1173. ERROR_INVALID_PRINTER_STATE             equ     1906
  1174. ERROR_PASSWORD_MUST_CHANGE              equ     1907
  1175. ERROR_DOMAIN_CONTROLLER_NOT_FOUND       equ     1908
  1176. ERROR_ACCOUNT_LOCKED_OUT                equ     1909
  1177. ERROR_INVALID_PIXEL_FORMAT              equ     2000
  1178. ERROR_BAD_DRIVER                        equ     2001
  1179. ERROR_INVALID_WINDOW_STYLE              equ     2002
  1180. ERROR_METAFILE_NOT_SUPPORTED            equ     2003
  1181. ERROR_TRANSFORM_NOT_SUPPORTED           equ     2004
  1182. ERROR_CLIPPING_NOT_SUPPORTED            equ     2005
  1183. ERROR_UNKNOWN_PRINT_MONITOR             equ     3000
  1184. ERROR_PRINTER_DRIVER_IN_USE             equ     3001
  1185. ERROR_SPOOL_FILE_NOT_FOUND              equ     3002
  1186. ERROR_SPL_NO_STARTDOC                   equ     3003
  1187. ERROR_SPL_NO_ADDJOB                     equ     3004
  1188. ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED equ     3005
  1189. ERROR_PRINT_MONITOR_ALREADY_INSTALLED   equ     3006
  1190. ERROR_WINS_INTERNAL                     equ     4000
  1191. ERROR_CAN_NOT_DEL_LOCAL_WINS            equ     4001
  1192. ERROR_STATIC_INIT                       equ     4002
  1193. ERROR_INC_BACKUP                        equ     4003
  1194. ERROR_FULL_BACKUP                       equ     4004
  1195. ERROR_REC_NON_EXISTENT                  equ     4005
  1196. ERROR_RPL_NOT_ALLOWED                   equ     4006
  1197. ERROR_NO_BROWSER_SERVERS_FOUND          equ     6118
  1198. ;
  1199. ;------------------------------------------------------------------------------
  1200. ;
  1201. ; ===================
  1202. ; edit control styles
  1203. ; ===================
  1204. ;
  1205. ES_LEFT                         equ     0000h
  1206. ES_CENTER                       equ     0001h
  1207. ES_RIGHT                        equ     0002h
  1208. ES_MULTILINE                    equ     0004h
  1209. ES_UPPERCASE                    equ     0008h
  1210. ES_LOWERCASE                    equ     0010h
  1211. ES_PASSWORD                     equ     0020h
  1212. ES_AUTOVSCROLL                  equ     0040h
  1213. ES_AUTOHSCROLL                  equ     0080h
  1214. ES_NOHIDESEL                    equ     0100h
  1215. ES_OEMCONVERT                   equ     0400h
  1216. ES_READONLY                     equ     0800h
  1217. ES_WANTRETURN                   equ     1000h
  1218. ES_NUMBER                       equ     2000h
  1219. ;
  1220. ES_DEFAULT                      equ     ES_MULTILINE+ES_AUTOHSCROLL
  1221. ;
  1222. ;------------------------------------------------------------------------------
  1223. ;
  1224. ; =============
  1225. ; font families
  1226. ; =============
  1227. ;
  1228. FF_DONTCARE                     equ     0000h
  1229. FF_ROMAN                        equ     0010h
  1230. FF_SWISS                        equ     0020h
  1231. FF_MODERN                       equ     0030h
  1232. FF_SCRIPT                       equ     0040h
  1233. FF_DECORATIVE                   equ     0050h
  1234. ;
  1235. ;------------------------------------------------------------------------------
  1236. ;
  1237. ; ===============
  1238. ; file attributes
  1239. ; ===============
  1240. ;
  1241. FILE_ATTRIBUTE_READONLY         equ     00000001h
  1242. FILE_ATTRIBUTE_HIDDEN           equ     00000002h
  1243. FILE_ATTRIBUTE_SYSTEM           equ     00000004h
  1244. FILE_ATTRIBUTE_DIRECTORY        equ     00000010h
  1245. FILE_ATTRIBUTE_ARCHIVE          equ     00000020h
  1246. FILE_ATTRIBUTE_NORMAL           equ     00000080h
  1247. FILE_ATTRIBUTE_TEMPORARY        equ     00000100h
  1248. FILE_ATTRIBUTE_COMPRESSED       equ     00000800h
  1249. ;
  1250. ;------------------------------------------------------------------------------
  1251. ;
  1252. ; ===================
  1253. ; file creation flags
  1254. ; ===================
  1255. ;
  1256. FILE_FLAG_WRITE_THROUGH         equ     80000000h
  1257. FILE_FLAG_OVERLAPPED            equ     40000000h
  1258. FILE_FLAG_NO_BUFFERING          equ     20000000h
  1259. FILE_FLAG_RANDOM_ACCESS         equ     10000000h
  1260. FILE_FLAG_SEQUENTIAL_SCAN       equ     08000000h
  1261. FILE_FLAG_DELETE_ON_CLOSE       equ     04000000h
  1262. FILE_FLAG_BACKUP_SEMANTICS      equ     02000000h
  1263. FILE_FLAG_POSIX_SEMANTICS       equ     01000000h
  1264. ;
  1265. ;------------------------------------------------------------------------------
  1266. ;
  1267. ; ==================
  1268. ; file notifications
  1269. ; ==================
  1270. ;
  1271. FILE_NOTIFY_CHANGE_FILE_NAME    equ     0001h
  1272. FILE_NOTIFY_CHANGE_DIR_NAME     equ     0002h
  1273. FILE_NOTIFY_CHANGE_ATTRIBUTES   equ     0004h
  1274. FILE_NOTIFY_CHANGE_SIZE         equ     0008h
  1275. FILE_NOTIFY_CHANGE_LAST_WRITE   equ     0010h
  1276. FILE_NOTIFY_CHANGE_SECURITY     equ     0100h
  1277. ;
  1278. ;------------------------------------------------------------------------------
  1279. ;
  1280. ; ================
  1281. ; file share modes
  1282. ; ================
  1283. ;
  1284. FILE_SHARE_NONE                 equ     0000h
  1285. FILE_SHARE_READ                 equ     0001h
  1286. FILE_SHARE_WRITE                equ     0002h
  1287. ;
  1288. FILE_SHARE_READWRITE            equ     FILE_SHARE_READ+FILE_SHARE_WRITE
  1289. ;
  1290. ;------------------------------------------------------------------------------
  1291. ;
  1292. ; ========================
  1293. ; SetFilePointer() methods
  1294. ; ========================
  1295. ;
  1296. FILE_BEGIN                      equ     0
  1297. FILE_CURRENT                    equ     1
  1298. FILE_END                        equ     2
  1299. ;
  1300. ;------------------------------------------------------------------------------
  1301. ;
  1302. ; =================
  1303. ; file system flags
  1304. ; =================
  1305. ;
  1306. FILE_CASE_SENSITIVE_SEARCH      equ     00000001h
  1307. FILE_CASE_PRESERVED_NAMES       equ     00000002h
  1308. FILE_UNICODE_ON_DISK            equ     00000004h
  1309. FILE_PERSISTENT_ACLS            equ     00000008h
  1310. FILE_FILE_COMPRESSION           equ     00000010h
  1311. FILE_VOLUME_IS_COMPRESSED       equ     00008000h
  1312. ;
  1313. FS_CASE_SENSITIVE               equ     FILE_CASE_SENSITIVE_SEARCH
  1314. FS_CASE_IS_PRESERVED            equ     FILE_CASE_PRESERVED_NAMES
  1315. FS_UNICODE_STORED_ON_DISK       equ     FILE_UNICODE_ON_DISK
  1316. FS_PERSISTENT_ACLS              equ     FILE_PERSISTENT_ACLS
  1317. FS_FILE_COMPRESSION             equ     FILE_FILE_COMPRESSION
  1318. FS_VOL_IS_COMPRESSED            equ     FILE_VOLUME_IS_COMPRESSED
  1319. ;
  1320. ;------------------------------------------------------------------------------
  1321. ;
  1322. ; ============
  1323. ; font weights
  1324. ; ============
  1325. ;
  1326. FW_DONTCARE                     equ     000
  1327. FW_THIN                         equ     100
  1328. FW_EXTRALIGHT                   equ     200
  1329. FW_LIGHT                        equ     300
  1330. FW_NORMAL                       equ     400
  1331. FW_MEDIUM                       equ     500
  1332. FW_SEMIBOLD                     equ     600
  1333. FW_BOLD                         equ     700
  1334. FW_EXTRABOLD                    equ     800
  1335. FW_HEAVY                        equ     900
  1336. ;
  1337. FW_ULTRALIGHT                   equ     FW_EXTRALIGHT
  1338. FW_REGULAR                      equ     FW_NORMAL
  1339. FW_DEMIBOLD                     equ     FW_SEMIBOLD
  1340. FW_ULTRABOLD                    equ     FW_EXTRABOLD
  1341. FW_BLACK                        equ     FW_HEAVY
  1342. ;
  1343. ;------------------------------------------------------------------------------
  1344. ;
  1345. ; ======================
  1346. ; GetClassLong() offsets
  1347. ; ======================
  1348. ;
  1349. GCL_MENUNAME                    equ     -08
  1350. GCL_HBRBACKGROUND               equ     -10
  1351. GCL_HCURSOR                     equ     -12
  1352. GCL_HICON                       equ     -14
  1353. GCL_HMODULE                     equ     -16
  1354. GCL_CBWNDEXTRA                  equ     -18
  1355. GCL_CBCLSEXTRA                  equ     -20
  1356. GCL_WNDPROC                     equ     -24
  1357. GCL_STYLE                       equ     -26
  1358. GCW_ATOM                        equ     -32
  1359. GCL_HICONSM                     equ     -34
  1360. ;
  1361. ;------------------------------------------------------------------------------
  1362. ;
  1363. ; =================
  1364. ; file access types
  1365. ; =================
  1366. ;
  1367. GENERIC_ALL                     equ     10000000h
  1368. GENERIC_EXECUTE                 equ     20000000h
  1369. GENERIC_WRITE                   equ     40000000h
  1370. GENERIC_READ                    equ     80000000h
  1371. ;
  1372. GENERIC_READWRITE               equ     GENERIC_READ+GENERIC_WRITE
  1373. ;
  1374. ;------------------------------------------------------------------------------
  1375. ;
  1376. ; ===================
  1377. ; global memory flags
  1378. ; ===================
  1379. ;
  1380. GMEM_FIXED                      equ     0000h
  1381. GMEM_MOVEABLE                   equ     0002h
  1382. GMEM_NOCOMPACT                  equ     0010h
  1383. GMEM_NODISCARD                  equ     0020h
  1384. GMEM_ZEROINIT                   equ     0040h
  1385. GMEM_MODIFY                     equ     0080h
  1386. GMEM_DISCARDABLE                equ     0100h
  1387. GMEM_NOT_BANKED                 equ     1000h
  1388. GMEM_SHARE                      equ     2000h
  1389. GMEM_DDESHARE                   equ     2000h
  1390. GMEM_NOTIFY                     equ     4000h
  1391. GMEM_INVALID_HANDLE             equ     8000h
  1392. ;
  1393. GMEM_VALID_FLAGS                equ     7F72h
  1394. GMEM_LOWER                      equ     GMEM_NOT_BANKED
  1395. ;
  1396. ;------------------------------------------------------------------------------
  1397. ;
  1398. ; ================
  1399. ; GetWindow() id's
  1400. ; ================
  1401. ;
  1402. GW_HWNDFIRST                    equ     0
  1403. GW_HWNDLAST                     equ     1
  1404. GW_HWNDNEXT                     equ     2
  1405. GW_HWNDPREV                     equ     3
  1406. GW_OWNER                        equ     4
  1407. GW_CHILD                        equ     5
  1408. ;
  1409. GW_MAX                          equ     5
  1410. ;
  1411. ;------------------------------------------------------------------------------
  1412. ;
  1413. ; =======================
  1414. ; GetWindowLong() offsets
  1415. ; =======================
  1416. ;
  1417. GWL_WNDPROC                     equ     -04
  1418. GWL_HINSTANCE                   equ     -06
  1419. GWL_HWNDPARENT                  equ     -08
  1420. GWL_STYLE                       equ     -16
  1421. GWL_EXSTYLE                     equ     -20
  1422. GWL_USERDATA                    equ     -21
  1423. GWL_ID                          equ     -12
  1424. ;
  1425. ;------------------------------------------------------------------------------
  1426. ;
  1427. ; ==================
  1428. ; WinHelp() commands
  1429. ; ==================
  1430. ;
  1431. HELP_CONTEXT                    equ     0001h
  1432. HELP_QUIT                       equ     0002h
  1433. HELP_INDEX                      equ     0003h
  1434. HELP_CONTENTS                   equ     0003h
  1435. HELP_HELPONHELP                 equ     0004h
  1436. HELP_SETINDEX                   equ     0005h
  1437. HELP_SETCONTENTS                equ     0005h
  1438. HELP_CONTEXTPOPUP               equ     0008h
  1439. HELP_FORCEFILE                  equ     0009h
  1440. HELP_CONTEXTMENU                equ     000Ah
  1441. HELP_FINDER                     equ     000Bh
  1442. HELP_WM_HELP                    equ     000Ch
  1443. HELP_SETPOPUP_POS               equ     000Dh
  1444. HELP_TCARD_DATA                 equ     0010h
  1445. HELP_TCARD_OTHER_CALLER         equ     0011h
  1446. HELP_KEY                        equ     0101h
  1447. HELP_COMMAND                    equ     0102h
  1448. HELP_PARTIALKEY                 equ     0105h
  1449. HELP_MULTIKEY                   equ     0201h
  1450. HELP_SETWINPOS                  equ     0203h
  1451. HELP_TCARD                      equ     8000h
  1452. ;
  1453. ;------------------------------------------------------------------------------
  1454. ;
  1455. ; =======================
  1456. ; hit test position codes
  1457. ; =======================
  1458. ;
  1459. HTERROR                         equ     -2
  1460. HTTRANSPARENT                   equ     -1
  1461. HTNOWHERE                       equ      0
  1462. HTCLIENT                        equ      1
  1463. HTCAPTION                       equ      2
  1464. HTSYSMENU                       equ      3
  1465. HTGROWBOX                       equ      4
  1466. HTMENU                          equ      5
  1467. HTHSCROLL                       equ      6
  1468. HTVSCROLL                       equ      7
  1469. HTMINBUTTON                     equ      8
  1470. HTMAXBUTTON                     equ      9
  1471. ;
  1472. HTSIZEFIRST                     equ     HTLEFT
  1473. HTLEFT                          equ     10
  1474. HTRIGHT                         equ     11
  1475. HTTOP                           equ     12
  1476. HTTOPLEFT                       equ     13
  1477. HTTOPRIGHT                      equ     14
  1478. HTBOTTOM                        equ     15
  1479. HTBOTTOMLEFT                    equ     16
  1480. HTBOTTOMRIGHT                   equ     17
  1481. HTSIZELAST                      equ     HTBOTTOMRIGHT
  1482. ;
  1483. HTBORDER                        equ     18
  1484. HTOBJECT                        equ     19
  1485. HTCLOSE                         equ     20
  1486. HTHELP                          equ     21
  1487. ;
  1488. HTSIZE                          equ     HTGROWBOX
  1489. HTREDUCE                        equ     HTMINBUTTON
  1490. HTZOOM                          equ     HTMAXBUTTON
  1491. ;
  1492. ;------------------------------------------------------------------------------
  1493. ;
  1494. ; ===================
  1495. ; toolbar bitmap id's
  1496. ; ===================
  1497. ;
  1498. IDB_STD_SMALL_COLOR             equ      0
  1499. IDB_STD_LARGE_COLOR             equ      1
  1500. IDB_VIEW_SMALL_COLOR            equ      4
  1501. IDB_VIEW_LARGE_COLOR            equ      5
  1502. ;
  1503. HINST_COMMCTRL                  equ     -1
  1504. ;
  1505. ;------------------------------------------------------------------------------
  1506. ;
  1507. ; ====================
  1508. ; standard cursor id's
  1509. ; ====================
  1510. ;
  1511. IDC_ARROW                       equ     32512
  1512. IDC_IBEAM                       equ     32513
  1513. IDC_WAIT                        equ     32514
  1514. IDC_CROSS                       equ     32515
  1515. IDC_UPARROW                     equ     32516
  1516. IDC_SIZE                        equ     32640   ;obsolete, use IDC_SIZEALL
  1517. IDC_ICON                        equ     32641   ;obsolete, use IDC_ARROW
  1518. IDC_SIZENWSE                    equ     32642
  1519. IDC_SIZENESW                    equ     32643
  1520. IDC_SIZEWE                      equ     32644
  1521. IDC_SIZENS                      equ     32645
  1522. IDC_SIZEALL                     equ     32646
  1523. IDC_NO                          equ     32648
  1524. IDC_APPSTARTING                 equ     32650
  1525. IDC_HELP                        equ     32651
  1526. ;
  1527. ;------------------------------------------------------------------------------
  1528. ;
  1529. ; ==================
  1530. ; standard icon id's
  1531. ; ==================
  1532. ;
  1533. IDI_APPLICATION                 equ     32512
  1534. IDI_HAND                        equ     32513
  1535. IDI_QUESTION                    equ     32514
  1536. IDI_EXCLAMATION                 equ     32515
  1537. IDI_ASTERISK                    equ     32516
  1538. IDI_WINLOGO                     equ     32517
  1539. ;
  1540. ;------------------------------------------------------------------------------
  1541. ;
  1542. ; ===================
  1543. ; dialog command id's
  1544. ; ===================
  1545. ;
  1546. IDOK                            equ     1
  1547. IDCANCEL                        equ     2
  1548. IDABORT                         equ     3
  1549. IDRETRY                         equ     4
  1550. IDIGNORE                        equ     5
  1551. IDYES                           equ     6
  1552. IDNO                            equ     7
  1553. IDCLOSE                         equ     8
  1554. IDHELP                          equ     9
  1555. ;
  1556. ;------------------------------------------------------------------------------
  1557. ;
  1558. ; =============================
  1559. ; keyboard message lParam flags
  1560. ; =============================
  1561. ;
  1562. KF_EXTENDED                     equ     0100h
  1563. KF_DLGMODE                      equ     0800h
  1564. KF_MENUMODE                     equ     1000h
  1565. KF_ALTDOWN                      equ     2000h
  1566. KF_REPEAT                       equ     4000h
  1567. KF_UP                           equ     8000h
  1568. ;
  1569. ;------------------------------------------------------------------------------
  1570. ;
  1571. ; ================
  1572. ; listbox messages
  1573. ; ================
  1574. ;
  1575. LB_ADDSTRING                    equ     0180h
  1576. LB_INSERTSTRING                 equ     0181h
  1577. LB_DELETESTRING                 equ     0182h
  1578. LB_SELITEMRANGEEX               equ     0183h
  1579. LB_RESETCONTENT                 equ     0184h
  1580. LB_SETSEL                       equ     0185h
  1581. LB_SETCURSEL                    equ     0186h
  1582. LB_GETSEL                       equ     0187h
  1583. LB_GETCURSEL                    equ     0188h
  1584. LB_GETTEXT                      equ     0189h
  1585. LB_GETTEXTLEN                   equ     018Ah
  1586. LB_GETCOUNT                     equ     018Bh
  1587. LB_SELECTSTRING                 equ     018Ch
  1588. LB_DIR                          equ     018Dh
  1589. LB_GETTOPINDEX                  equ     018Eh
  1590. LB_FINDSTRING                   equ     018Fh
  1591. LB_GETSELCOUNT                  equ     0190h
  1592. LB_GETSELITEMS                  equ     0191h
  1593. LB_SETTABSTOPS                  equ     0192h
  1594. LB_GETHORIZONTALEXTENT          equ     0193h
  1595. LB_SETHORIZONTALEXTENT          equ     0194h
  1596. LB_SETCOLUMNWIDTH               equ     0195h
  1597. LB_ADDFILE                      equ     0196h
  1598. LB_SETTOPINDEX                  equ     0197h
  1599. LB_GETITEMRECT                  equ     0198h
  1600. LB_GETITEMDATA                  equ     0199h
  1601. LB_SETITEMDATA                  equ     019Ah
  1602. LB_SELITEMRANGE                 equ     019Bh
  1603. LB_SETANCHORINDEX               equ     019Ch
  1604. LB_GETANCHORINDEX               equ     019Dh
  1605. LB_SETCARETINDEX                equ     019Eh
  1606. LB_GETCARETINDEX                equ     019Fh
  1607. LB_SETITEMHEIGHT                equ     01A0h
  1608. LB_GETITEMHEIGHT                equ     01A1h
  1609. LB_FINDSTRINGEXACT              equ     01A2h
  1610. LB_SETLOCALE                    equ     01A5h
  1611. LB_GETLOCALE                    equ     01A6h
  1612. LB_SETCOUNT                     equ     01A7h
  1613. LB_INITSTORAGE                  equ     01A8h
  1614. LB_ITEMFROMPOINT                equ     01A9h
  1615. LB_MSGMAX                       equ     01B0h
  1616. ;
  1617. ;------------------------------------------------------------------------------
  1618. ;
  1619. ; =====================
  1620. ; listbox return values
  1621. ; =====================
  1622. ;
  1623. LB_OKAY                         equ      0
  1624. LB_ERR                          equ     -1
  1625. LB_ERRSPACE                     equ     -2
  1626. ;
  1627. ;------------------------------------------------------------------------------
  1628. ;
  1629. ; ==========================
  1630. ; listbox notification codes
  1631. ; ==========================
  1632. ;
  1633. LBN_ERRSPACE                    equ     -2
  1634. LBN_SELCHANGE                   equ      1
  1635. LBN_DBLCLK                      equ      2
  1636. LBN_SELCANCEL                   equ      3
  1637. LBN_SETFOCUS                    equ      4
  1638. LBN_KILLFOCUS                   equ      5
  1639. ;
  1640. ;------------------------------------------------------------------------------
  1641. ;
  1642. ; ==============
  1643. ; listbox styles
  1644. ; ==============
  1645. ;
  1646. LBS_NOTIFY                      equ     00000001h
  1647. LBS_SORT                        equ     00000002h
  1648. LBS_NOREDRAW                    equ     00000004h
  1649. LBS_MULTIPLESEL                 equ     00000008h
  1650. LBS_OWNERDRAWFIXED              equ     00000010h
  1651. LBS_OWNERDRAWVARIABLE           equ     00000020h
  1652. LBS_HASSTRINGS                  equ     00000040h
  1653. LBS_USETABSTOPS                 equ     00000080h
  1654. LBS_NOINTEGRALHEIGHT            equ     00000100h
  1655. LBS_MULTICOLUMN                 equ     00000200h
  1656. LBS_WANTKEYBOARDINPUT           equ     00000400h
  1657. LBS_EXTENDEDSEL                 equ     00000800h
  1658. LBS_DISABLENOSCROLL             equ     00001000h
  1659. LBS_NODATA                      equ     00002000h
  1660. LBS_NOSEL                       equ     00004000h
  1661. LBS_STANDARD                    equ     00A00003h
  1662. ;
  1663. ;------------------------------------------------------------------------------
  1664. ;
  1665. ; ==================
  1666. ; local memory flags
  1667. ; ==================
  1668. ;
  1669. LMEM_FIXED                      equ     0000h
  1670. LMEM_MOVEABLE                   equ     0002h
  1671. LMEM_NOCOMPACT                  equ     0010h
  1672. LMEM_NODISCARD                  equ     0020h
  1673. LMEM_ZEROINIT                   equ     0040h
  1674. LMEM_MODIFY                     equ     0080h
  1675. LMEM_LOCKCOUNT                  equ     00FFh
  1676. LMEM_DISCARDABLE                equ     0F00h
  1677. LMEM_DISCARDED                  equ     4000h
  1678. LMEM_INVALID_HANDLE             equ     8000h
  1679. ;
  1680. LMEM_VALID_FLAGS                equ     0F72h
  1681. ;
  1682. NONZEROLHND                     equ     LMEM_MOVEABLE
  1683. NONZEROLPTR                     equ     LMEM_FIXED
  1684. ;
  1685. LHND                            equ     LMEM_ZEROINIT+LMEM_MOVEABLE
  1686. LPTR                            equ     LMEM_ZEROINIT+LMEM_FIXED
  1687. ;
  1688. ;------------------------------------------------------------------------------
  1689. ;
  1690. ; ==================
  1691. ; list view messages
  1692. ; ==================
  1693. ;
  1694. LVM_FIRST                       equ     1000h
  1695. ;
  1696. LVM_GETBKCOLOR                  equ     LVM_FIRST+000
  1697. LVM_SETBKCOLOR                  equ     LVM_FIRST+001
  1698. LVM_GETIMAGELIST                equ     LVM_FIRST+002
  1699. LVM_SETIMAGELIST                equ     LVM_FIRST+003
  1700. LVM_GETITEMCOUNT                equ     LVM_FIRST+004
  1701. LVM_GETITEMA                    equ     LVM_FIRST+005
  1702. LVM_SETITEMA                    equ     LVM_FIRST+006
  1703. LVM_INSERTITEMA                 equ     LVM_FIRST+007
  1704. LVM_DELETEITEM                  equ     LVM_FIRST+008
  1705. LVM_DELETEALLITEMS              equ     LVM_FIRST+009
  1706. LVM_GETCALLBACKMASK             equ     LVM_FIRST+010
  1707. LVM_SETCALLBACKMASK             equ     LVM_FIRST+011
  1708. LVM_GETNEXTITEM                 equ     LVM_FIRST+012
  1709. LVM_FINDITEMA                   equ     LVM_FIRST+013
  1710. LVM_GETITEMRECT                 equ     LVM_FIRST+014
  1711. LVM_SETITEMPOSITION             equ     LVM_FIRST+015
  1712. LVM_GETITEMPOSITION             equ     LVM_FIRST+016
  1713. LVM_GETSTRINGWIDTHA             equ     LVM_FIRST+017
  1714. LVM_HITTEST                     equ     LVM_FIRST+018
  1715. LVM_ENSUREVISIBLE               equ     LVM_FIRST+019
  1716. LVM_SCROLL                      equ     LVM_FIRST+020
  1717. LVM_REDRAWITEMS                 equ     LVM_FIRST+021
  1718. LVM_ARRANGE                     equ     LVM_FIRST+022
  1719. LVM_EDITLABELA                  equ     LVM_FIRST+023
  1720. LVM_GETEDITCONTROL              equ     LVM_FIRST+024
  1721. LVM_GETCOLUMNA                  equ     LVM_FIRST+025
  1722. LVM_SETCOLUMNA                  equ     LVM_FIRST+026
  1723. LVM_INSERTCOLUMNA               equ     LVM_FIRST+027
  1724. LVM_DELETECOLUMN                equ     LVM_FIRST+028
  1725. LVM_GETCOLUMNWIDTH              equ     LVM_FIRST+029
  1726. LVM_SETCOLUMNWIDTH              equ     LVM_FIRST+030
  1727. LVM_CREATEDRAGIMAGE             equ     LVM_FIRST+033
  1728. LVM_GETVIEWRECT                 equ     LVM_FIRST+034
  1729. LVM_GETTEXTCOLOR                equ     LVM_FIRST+035
  1730. LVM_SETTEXTCOLOR                equ     LVM_FIRST+036
  1731. LVM_GETTEXTBKCOLOR              equ     LVM_FIRST+037
  1732. LVM_SETTEXTBKCOLOR              equ     LVM_FIRST+038
  1733. LVM_GETTOPINDEX                 equ     LVM_FIRST+039
  1734. LVM_GETCOUNTPERPAGE             equ     LVM_FIRST+040
  1735. LVM_GETORIGIN                   equ     LVM_FIRST+041
  1736. LVM_UPDATE                      equ     LVM_FIRST+042
  1737. LVM_SETITEMSTATE                equ     LVM_FIRST+043
  1738. LVM_GETITEMSTATE                equ     LVM_FIRST+044
  1739. LVM_GETITEMTEXTA                equ     LVM_FIRST+045
  1740. LVM_SETITEMTEXTA                equ     LVM_FIRST+046
  1741. LVM_SETITEMCOUNT                equ     LVM_FIRST+047
  1742. LVM_SORTITEMS                   equ     LVM_FIRST+048
  1743. LVM_SETITEMPOSITION32           equ     LVM_FIRST+049
  1744. LVM_GETSELECTEDCOUNT            equ     LVM_FIRST+050
  1745. LVM_GETITEMSPACING              equ     LVM_FIRST+051
  1746. LVM_GETISEARCHSTRINGA           equ     LVM_FIRST+052
  1747. ;
  1748. LVM_GETITEMW                    equ     LVM_FIRST+075
  1749. LVM_SETITEMW                    equ     LVM_FIRST+076
  1750. LVM_INSERTITEMW                 equ     LVM_FIRST+077
  1751. LVM_FINDITEMW                   equ     LVM_FIRST+083
  1752. LVM_GETSTRINGWIDTHW             equ     LVM_FIRST+087
  1753. LVM_GETCOLUMNW                  equ     LVM_FIRST+095
  1754. LVM_SETCOLUMNW                  equ     LVM_FIRST+096
  1755. LVM_INSERTCOLUMNW               equ     LVM_FIRST+097
  1756. LVM_GETITEMTEXTW                equ     LVM_FIRST+115
  1757. LVM_SETITEMTEXTW                equ     LVM_FIRST+116
  1758. LVM_GETISEARCHSTRINGW           equ     LVM_FIRST+117
  1759. LVM_EDITLABELW                  equ     LVM_FIRST+118
  1760. ;
  1761.                                 if      UNICODE
  1762. LVM_GETITEM                     equ     LVM_GETITEMW
  1763. LVM_SETITEM                     equ     LVM_SETITEMW
  1764. LVM_INSERTITEM                  equ     LVM_INSERTITEMW
  1765. LVM_FINDITEM                    equ     LVM_FINDITEMW
  1766. LVM_GETSTRINGWIDTH              equ     LVM_GETSTRINGWIDTHW
  1767. LVM_GETCOLUMN                   equ     LVM_GETCOLUMNW
  1768. LVM_SETCOLUMN                   equ     LVM_SETCOLUMNW
  1769. LVM_INSERTCOLUMN                equ     LVM_INSERTCOLUMNW
  1770. LVM_GETITEMTEXT                 equ     LVM_GETITEMTEXTW
  1771. LVM_SETITEMTEXT                 equ     LVM_SETITEMTEXTW
  1772. LVM_GETISEARCHSTRING            equ     LVM_GETISEARCHSTRINGW
  1773. LVM_EDITLABEL                   equ     LVM_EDITLABELW
  1774.                                 else
  1775. LVM_GETITEM                     equ     LVM_GETITEMA
  1776. LVM_SETITEM                     equ     LVM_SETITEMA
  1777. LVM_INSERTITEM                  equ     LVM_INSERTITEMA
  1778. LVM_FINDITEM                    equ     LVM_FINDITEMA
  1779. LVM_GETSTRINGWIDTH              equ     LVM_GETSTRINGWIDTHA
  1780. LVM_GETCOLUMN                   equ     LVM_GETCOLUMNA
  1781. LVM_SETCOLUMN                   equ     LVM_SETCOLUMNA
  1782. LVM_INSERTCOLUMN                equ     LVM_INSERTCOLUMNA
  1783. LVM_GETITEMTEXT                 equ     LVM_GETITEMTEXTA
  1784. LVM_SETITEMTEXT                 equ     LVM_SETITEMTEXTA
  1785. LVM_GETISEARCHSTRING            equ     LVM_GETISEARCHSTRINGA
  1786. LVM_EDITLABEL                   equ     LVM_EDITLABELA
  1787.                                 endif
  1788. ;
  1789. ;------------------------------------------------------------------------------
  1790. ;
  1791. ; =======================
  1792. ; list view notifications
  1793. ; =======================
  1794. ;
  1795. LVN_FIRST                       equ     -100
  1796. LVN_LAST                        equ     LVN_FIRST-99
  1797. ;
  1798. LVN_ITEMCHANGING                equ     LVN_FIRST-00
  1799. LVN_ITEMCHANGED                 equ     LVN_FIRST-01
  1800. LVN_INSERTITEM                  equ     LVN_FIRST-02
  1801. LVN_DELETEITEM                  equ     LVN_FIRST-03
  1802. LVN_DELETEALLITEMS              equ     LVN_FIRST-04
  1803. LVN_BEGINLABELEDITA             equ     LVN_FIRST-05
  1804. LVN_ENDLABELEDITA               equ     LVN_FIRST-06
  1805. LVN_COLUMNCLICK                 equ     LVN_FIRST-08
  1806. LVN_BEGINDRAG                   equ     LVN_FIRST-09
  1807. LVN_BEGINRDRAG                  equ     LVN_FIRST-11
  1808. LVN_GETDISPINFOA                equ     LVN_FIRST-50
  1809. LVN_SETDISPINFOA                equ     LVN_FIRST-51
  1810. ;
  1811. LVN_BEGINLABELEDITW             equ     LVN_FIRST-75
  1812. LVN_ENDLABELEDITW               equ     LVN_FIRST-76
  1813. LVN_GETDISPINFOW                equ     LVN_FIRST-77
  1814. LVN_SETDISPINFOW                equ     LVN_FIRST-78
  1815. ;
  1816.                                 if      UNICODE
  1817. LVN_BEGINLABELEDIT              equ     LVN_BEGINLABELEDITW
  1818. LVN_ENDLABELEDIT                equ     LVN_ENDLABELEDITW
  1819. LVN_GETDISPINFO                 equ     LVN_GETDISPINFOW
  1820. LVN_SETDISPINFO                 equ     LVN_SETDISPINFOW
  1821.                                 else
  1822. LVN_BEGINLABELEDIT              equ     LVN_BEGINLABELEDITA
  1823. LVN_ENDLABELEDIT                equ     LVN_ENDLABELEDITA
  1824. LVN_GETDISPINFO                 equ     LVN_GETDISPINFOA
  1825. LVN_SETDISPINFO                 equ     LVN_SETDISPINFOA
  1826.                                 endif
  1827. ;
  1828. ;------------------------------------------------------------------------------
  1829. ;
  1830. ; ================
  1831. ; list view styles
  1832. ; ================
  1833. ;
  1834. LVS_TYPEMASK                    equ     00000003h
  1835. LVS_ICON                        equ     00000000h
  1836. LVS_REPORT                      equ     00000001h
  1837. LVS_SMALLICON                   equ     00000002h
  1838. LVS_LIST                        equ     00000003h
  1839. ;
  1840. LVS_SINGLESEL                   equ     00000004h
  1841. LVS_SHOWSELALWAYS               equ     00000008h
  1842. LVS_SORTASCENDING               equ     00000010h
  1843. LVS_SORTDESCENDING              equ     00000020h
  1844. LVS_SHAREIMAGELISTS             equ     00000040h
  1845. LVS_NOLABELWRAP                 equ     00000080h
  1846. LVS_AUTOARRANGE                 equ     00000100h
  1847. LVS_EDITLABELS                  equ     00000200h
  1848. ;
  1849. LVS_TYPESTYLEMASK               equ     0000FC00h
  1850. ;
  1851. LVS_ALIGNMASK                   equ     00000C00h
  1852. LVS_ALIGNTOP                    equ     00000000h
  1853. LVS_OWNERDRAWFIXED              equ     00000400h
  1854. LVS_ALIGNLEFT                   equ     00000800h
  1855. ;
  1856. LVS_NOSCROLL                    equ     00002000h
  1857. LVS_NOCOLUMNHEADER              equ     00004000h
  1858. LVS_NOSORTHEADER                equ     00008000h
  1859. ;
  1860. ;------------------------------------------------------------------------------
  1861. ;
  1862. ; ==================
  1863. ; MessageBox() flags
  1864. ; ==================
  1865. ;
  1866. MB_OK                           equ     00000000h
  1867. MB_OKCANCEL                     equ     00000001h
  1868. MB_ABORTRETRYIGNORE             equ     00000002h
  1869. MB_YESNOCANCEL                  equ     00000003h
  1870. MB_YESNO                        equ     00000004h
  1871. MB_RETRYCANCEL                  equ     00000005h
  1872. ;
  1873. MB_ICONHAND                     equ     00000010h
  1874. MB_ICONQUESTION                 equ     00000020h
  1875. MB_ICONEXCLAMATION              equ     00000030h
  1876. MB_ICONASTERISK                 equ     00000040h
  1877. ;
  1878. MB_ICONWARNING                  equ     MB_ICONEXCLAMATION
  1879. MB_ICONERROR                    equ     MB_ICONHAND
  1880. MB_ICONINFORMATION              equ     MB_ICONASTERISK
  1881. MB_ICONSTOP                     equ     MB_ICONHAND
  1882. ;
  1883. MB_DEFBUTTON1                   equ     00000000h
  1884. MB_DEFBUTTON2                   equ     00000100h
  1885. MB_DEFBUTTON3                   equ     00000200h
  1886. MB_DEFBUTTON4                   equ     00000300h
  1887. ;
  1888. MB_APPLMODAL                    equ     00000000h
  1889. MB_SYSTEMMODAL                  equ     00001000h
  1890. MB_TASKMODAL                    equ     00002000h
  1891. MB_HELP                         equ     00004000h
  1892. MB_RIGHT                        equ     00080000h
  1893. MB_RTLREADING                   equ     00100000h
  1894. ;
  1895. MB_NOFOCUS                      equ     00008000h
  1896. MB_SETFOREGROUND                equ     00010000h
  1897. MB_DEFAULT_DESKTOP_ONLY         equ     00020000h
  1898. MB_SERVICE_NOTIFICATION         equ     00040000h
  1899. ;
  1900. MB_TYPEMASK                     equ     0000000Fh
  1901. MB_USERICON                     equ     00000080h
  1902. MB_ICONMASK                     equ     000000F0h
  1903. MB_DEFMASK                      equ     00000F00h
  1904. MB_MODEMASK                     equ     00003000h
  1905. MB_MISCMASK                     equ     0000C000h
  1906. ;
  1907. ;------------------------------------------------------------------------------
  1908. ;
  1909. ; ==========
  1910. ; menu flags
  1911. ; ==========
  1912. ;
  1913. MF_INSERT                       equ     00000000h
  1914. MF_CHANGE                       equ     00000080h
  1915. MF_APPEND                       equ     00000100h
  1916. MF_DELETE                       equ     00000200h
  1917. MF_REMOVE                       equ     00001000h
  1918. ;
  1919. MF_BYCOMMAND                    equ     00000000h
  1920. MF_BYPOSITION                   equ     00000400h
  1921. ;
  1922. MF_SEPARATOR                    equ     00000800h
  1923. ;
  1924. MF_ENABLED                      equ     00000000h
  1925. MF_GRAYED                       equ     00000001h
  1926. MF_DISABLED                     equ     00000002h
  1927. ;
  1928. MF_UNCHECKED                    equ     00000000h
  1929. MF_CHECKED                      equ     00000008h
  1930. MF_USECHECKBITMAPS              equ     00000200h
  1931. ;
  1932. MF_STRING                       equ     00000000h
  1933. MF_BITMAP                       equ     00000004h
  1934. MF_OWNERDRAW                    equ     00000100h
  1935. ;
  1936. MF_POPUP                        equ     00000010h
  1937. MF_MENUBARBREAK                 equ     00000020h
  1938. MF_MENUBREAK                    equ     00000040h
  1939. ;
  1940. MF_UNHILITE                     equ     00000000h
  1941. MF_HILITE                       equ     00000080h
  1942. ;
  1943. MF_DEFAULT                      equ     00001000h
  1944. MF_SYSMENU                      equ     00002000h
  1945. MF_HELP                         equ     00004000h
  1946. MF_RIGHTJUSTIFY                 equ     00004000h
  1947. ;
  1948. MF_MOUSESELECT                  equ     00008000h
  1949. MF_END                          equ     00000080h       ;obsolete
  1950. ;
  1951. MFT_STRING                      equ     MF_STRING
  1952. MFT_BITMAP                      equ     MF_BITMAP
  1953. MFT_MENUBARBREAK                equ     MF_MENUBARBREAK
  1954. MFT_MENUBREAK                   equ     MF_MENUBREAK
  1955. MFT_OWNERDRAW                   equ     MF_OWNERDRAW
  1956. MFT_RADIOCHECK                  equ     00000200h
  1957. MFT_SEPARATOR                   equ     MF_SEPARATOR
  1958. MFT_RIGHTORDER                  equ     00002000h
  1959. MFT_RIGHTJUSTIFY                equ     MF_RIGHTJUSTIFY
  1960. ;
  1961. MFS_GRAYED                      equ     00000003h
  1962. MFS_DISABLED                    equ     MFS_GRAYED
  1963. MFS_CHECKED                     equ     MF_CHECKED
  1964. MFS_HILITE                      equ     MF_HILITE
  1965. MFS_ENABLED                     equ     MF_ENABLED
  1966. MFS_UNCHECKED                   equ     MF_UNCHECKED
  1967. MFS_UNHILITE                    equ     MF_UNHILITE
  1968. MFS_DEFAULT                     equ     MF_DEFAULT
  1969. ;
  1970. ;------------------------------------------------------------------------------
  1971. ;
  1972. ; ========================
  1973. ; mouse message key states
  1974. ; ========================
  1975. ;
  1976. MK_LBUTTON                      equ     0001h
  1977. MK_RBUTTON                      equ     0002h
  1978. MK_SHIFT                        equ     0004h
  1979. MK_CONTROL                      equ     0008h
  1980. MK_MBUTTON                      equ     0010h
  1981. ;
  1982. ;------------------------------------------------------------------------------
  1983. ;
  1984. ; ==================
  1985. ; owner draw actions
  1986. ; ==================
  1987. ;
  1988. ODA_DRAWENTIRE                  equ     0001h
  1989. ODA_SELECT                      equ     0002h
  1990. ODA_FOCUS                       equ     0004h
  1991. ;
  1992. ;------------------------------------------------------------------------------
  1993. ;
  1994. ; =================
  1995. ; owner draw states
  1996. ; =================
  1997. ;
  1998. ODS_SELECTED                    equ     0001h
  1999. ODS_GRAYED                      equ     0002h
  2000. ODS_DISABLED                    equ     0004h
  2001. ODS_CHECKED                     equ     0008h
  2002. ODS_FOCUS                       equ     0010h
  2003. ODS_DEFAULT                     equ     0020h
  2004. ODS_COMBOBOXEDIT                equ     1000h
  2005. ;
  2006. ;------------------------------------------------------------------------------
  2007. ;
  2008. ; ================
  2009. ; owner draw types
  2010. ; ================
  2011. ;
  2012. ODT_MENU                        equ     1
  2013. ODT_LISTBOX                     equ     2
  2014. ODT_COMBOBOX                    equ     3
  2015. ODT_BUTTON                      equ     4
  2016. ODT_STATIC                      equ     5
  2017. ;
  2018. ;------------------------------------------------------------------------------
  2019. ;
  2020. ; ==================
  2021. ; OPENFILENAME flags
  2022. ; ==================
  2023. ;
  2024. OFN_READONLY                    equ     00000001h
  2025. OFN_OVERWRITEPROMPT             equ     00000002h
  2026. OFN_HIDEREADONLY                equ     00000004h
  2027. OFN_NOCHANGEDIR                 equ     00000008h
  2028. OFN_SHOWHELP                    equ     00000010h
  2029. OFN_ENABLEHOOK                  equ     00000020h
  2030. OFN_ENABLETEMPLATE              equ     00000040h
  2031. OFN_ENABLETEMPLATEHANDLE        equ     00000080h
  2032. OFN_NOVALIDATE                  equ     00000100h
  2033. OFN_ALLOWMULTISELECT            equ     00000200h
  2034. OFN_EXTENSIONDIFFERENT          equ     00000400h
  2035. OFN_PATHMUSTEXIST               equ     00000800h
  2036. OFN_FILEMUSTEXIST               equ     00001000h
  2037. OFN_CREATEPROMPT                equ     00002000h
  2038. OFN_SHAREAWARE                  equ     00004000h
  2039. OFN_NOREADONLYRETURN            equ     00008000h
  2040. OFN_NOTESTFILECREATE            equ     00010000h
  2041. OFN_NONETWORKBUTTON             equ     00020000h
  2042. OFN_NOLONGNAMES                 equ     00040000h
  2043. OFN_EXPLORER                    equ     00080000h
  2044. OFN_NODEREFERENCELINKS          equ     00100000h
  2045. OFN_LONGNAMES                   equ     00200000h
  2046. ;
  2047. ;------------------------------------------------------------------------------
  2048. ;
  2049. ; ==============================
  2050. ; OPENFILENAME hook return codes
  2051. ; ==============================
  2052. ;
  2053. OFN_SHAREWARN                   equ     0
  2054. OFN_SHARENOWARN                 equ     1
  2055. OFN_SHAREFALLTHROUGH            equ     2
  2056. ;
  2057. ;------------------------------------------------------------------------------
  2058. ;
  2059. ; ================
  2060. ; pipe definitions
  2061. ; ================
  2062. ;
  2063. PIPE_ACCESS_INBOUND             equ     00000001h
  2064. PIPE_ACCESS_OUTBOUND            equ     00000002h
  2065. PIPE_ACCESS_DUPLEX              equ     00000003h
  2066. ;
  2067. PIPE_CLIENT_END                 equ     00000000h
  2068. PIPE_SERVER_END                 equ     00000001h
  2069. ;
  2070. PIPE_WAIT                       equ     00000000h
  2071. PIPE_NOWAIT                     equ     00000001h
  2072. ;
  2073. PIPE_READMODE_BYTE              equ     00000000h
  2074. PIPE_READMODE_MESSAGE           equ     00000002h
  2075. ;
  2076. PIPE_TYPE_BYTE                  equ     00000000h
  2077. PIPE_TYPE_MESSAGE               equ     00000004h
  2078. ;
  2079. PIPE_UNLIMITED_INSTANCES        equ     255
  2080. ;
  2081. ;------------------------------------------------------------------------------
  2082. ;
  2083. ; ====================
  2084. ; process access flags
  2085. ; ====================
  2086. ;
  2087. PROCESS_TERMINATE               equ     0001h
  2088. PROCESS_CREATE_THREAD           equ     0002h
  2089. PROCESS_VM_OPERATION            equ     0008h
  2090. PROCESS_VM_READ                 equ     0010h
  2091. PROCESS_VM_WRITE                equ     0020h
  2092. PROCESS_DUP_HANDLE              equ     0040h
  2093. PROCESS_CREATE_PROCESS          equ     0080h
  2094. PROCESS_SET_QUOTA               equ     0100h
  2095. PROCESS_SET_INFORMATION         equ     0200h
  2096. PROCESS_QUERY_INFORMATION       equ     0400h
  2097. ;
  2098. PROCESS_ALL_ACCESS              equ     STANDARD_RIGHTS_REQUIRED+\
  2099.                                         SYNCHRONIZE+\
  2100.                                         0FFFh
  2101. ;
  2102. ;------------------------------------------------------------------------------
  2103. ;
  2104. ; ========================
  2105. ; binary raster operations
  2106. ; ========================
  2107. ;
  2108. R2_BLACK                        equ      1              ;0
  2109. R2_NOTMERGEPEN                  equ      2              ;DPon
  2110. R2_MASKNOTPEN                   equ      3              ;DPna
  2111. R2_NOTCOPYPEN                   equ      4              ;PN
  2112. R2_MASKPENNOT                   equ      5              ;PDna
  2113. R2_NOT                          equ      6              ;Dn
  2114. R2_XORPEN                       equ      7              ;DPx
  2115. R2_NOTMASKPEN                   equ      8              ;DPan
  2116. R2_MASKPEN                      equ      9              ;DPa
  2117. R2_NOTXORPEN                    equ     10              ;DPxn
  2118. R2_NOP                          equ     11              ;D
  2119. R2_MERGENOTPEN                  equ     12              ;DPno
  2120. R2_COPYPEN                      equ     13              ;P
  2121. R2_MERGEPENNOT                  equ     14              ;PDno
  2122. R2_MERGEPEN                     equ     15              ;DPo
  2123. R2_WHITE                        equ     16              ;1
  2124. R2_LAST                         equ     16
  2125. ;
  2126. ;------------------------------------------------------------------------------
  2127. ;
  2128. ; =================
  2129. ; network resources
  2130. ; =================
  2131. ;
  2132. RESOURCE_CONNECTED              equ     00000001h
  2133. RESOURCE_GLOBALNET              equ     00000002h
  2134. RESOURCE_REMEMBERED             equ     00000003h
  2135. RESOURCE_RECENT                 equ     00000004h
  2136. RESOURCE_CONTEXT                equ     00000005h
  2137. ;
  2138. RESOURCETYPE_ANY                equ     00000000h
  2139. RESOURCETYPE_DISK               equ     00000001h
  2140. RESOURCETYPE_PRINT              equ     00000002h
  2141. RESOURCETYPE_RESERVED           equ     00000008h
  2142. RESOURCETYPE_UNKNOWN            equ     -1
  2143. ;
  2144. RESOURCEUSAGE_CONNECTABLE       equ     00000001h
  2145. RESOURCEUSAGE_CONTAINER         equ     00000002h
  2146. RESOURCEUSAGE_NOLOCALDEVICE     equ     00000004h
  2147. RESOURCEUSAGE_SIBLING           equ     00000008h
  2148. RESOURCEUSAGE_RESERVED          equ     80000000h
  2149. ;
  2150. RESOURCEUSAGE_ALL               equ     RESOURCEUSAGE_CONNECTABLE+\
  2151.                                         RESOURCEUSAGE_CONTAINER
  2152. ;
  2153. RESOURCEDISPLAYTYPE_GENERIC     equ     00000000h
  2154. RESOURCEDISPLAYTYPE_DOMAIN      equ     00000001h
  2155. RESOURCEDISPLAYTYPE_SERVER      equ     00000002h
  2156. RESOURCEDISPLAYTYPE_SHARE       equ     00000003h
  2157. RESOURCEDISPLAYTYPE_FILE        equ     00000004h
  2158. RESOURCEDISPLAYTYPE_GROUP       equ     00000005h
  2159. RESOURCEDISPLAYTYPE_NETWORK     equ     00000006h
  2160. RESOURCEDISPLAYTYPE_ROOT        equ     00000007h
  2161. RESOURCEDISPLAYTYPE_SHAREADMIN  equ     00000008h
  2162. RESOURCEDISPLAYTYPE_DIRECTORY   equ     00000009h
  2163. RESOURCEDISPLAYTYPE_TREE        equ     0000000Ah
  2164. ;
  2165. ;------------------------------------------------------------------------------
  2166. ;
  2167. ; ==========
  2168. ; rgb colors
  2169. ; ==========
  2170. ;
  2171. RGB_BLACK                       equ     00000000h
  2172. RGB_VDKGRAY32                   equ     00202020h
  2173. RGB_DKGRAY                      equ     00404040h
  2174. RGB_SOLIDGRAY                   equ     00808080h
  2175. RGB_SOLIDLTGRAY                 equ     00C0C0C0h
  2176. RGB_EBONY                       equ     00E0E0E0h
  2177. RGB_BLUE                        equ     00FF0000h
  2178. RGB_GREEN                       equ     0000FF00h
  2179. RGB_RED                         equ     000000FFh
  2180. ;
  2181. RGB_CYAN                        equ     RGB_BLUE + RGB_GREEN
  2182. RGB_MAGENTA                     equ     RGB_BLUE             + RGB_RED
  2183. RGB_YELLOW                      equ                RGB_GREEN + RGB_RED
  2184. RGB_WHITE                       equ     RGB_BLUE + RGB_GREEN + RGB_RED
  2185. ;
  2186. RGB_DKBLUE                      equ     00800000h
  2187. RGB_DKGREEN                     equ     00008000h
  2188. RGB_DKRED                       equ     00000080h
  2189. ;
  2190. RGB_DKCYAN                      equ     RGB_DKBLUE + RGB_DKGREEN
  2191. RGB_DKMAGENTA                   equ     RGB_DKBLUE               + RGB_DKRED
  2192. RGB_DKYELLOW                    equ                  RGB_DKGREEN + RGB_DKRED
  2193. ;
  2194. ;------------------------------------------------------------------------------
  2195. ;
  2196. ; ===================
  2197. ; CombineRgn() styles
  2198. ; ===================
  2199. ;
  2200. RGN_AND                         equ     1
  2201. RGN_OR                          equ     2
  2202. RGN_XOR                         equ     3
  2203. RGN_DIFF                        equ     4
  2204. RGN_COPY                        equ     5
  2205. RGN_MIN                         equ     RGN_AND
  2206. RGN_MAX                         equ     RGN_COPY
  2207. ;
  2208. ;------------------------------------------------------------------------------
  2209. ;
  2210. ; ====================
  2211. ; scroll bar constants
  2212. ; ====================
  2213. ;
  2214. SB_HORZ                         equ     0
  2215. SB_VERT                         equ     1
  2216. SB_CTL                          equ     2
  2217. SB_BOTH                         equ     3
  2218. ;
  2219. ;------------------------------------------------------------------------------
  2220. ;
  2221. ; ===================
  2222. ; scroll bar commands
  2223. ; ===================
  2224. ;
  2225. SB_LINEUP                       equ     0
  2226. SB_LINELEFT                     equ     0
  2227. SB_LINEDOWN                     equ     1
  2228. SB_LINERIGHT                    equ     1
  2229. SB_PAGEUP                       equ     2
  2230. SB_PAGELEFT                     equ     2
  2231. SB_PAGEDOWN                     equ     3
  2232. SB_PAGERIGHT                    equ     3
  2233. SB_THUMBPOSITION                equ     4
  2234. SB_THUMBTRACK                   equ     5
  2235. SB_TOP                          equ     6
  2236. SB_LEFT                         equ     6
  2237. SB_BOTTOM                       equ     7
  2238. SB_RIGHT                        equ     7
  2239. SB_ENDSCROLL                    equ     8
  2240. ;
  2241. ;------------------------------------------------------------------------------
  2242. ;
  2243. ; ===================
  2244. ; status bar messages
  2245. ; ===================
  2246. ;
  2247. SB_SETTEXTA                     equ     WM_USER+01
  2248. SB_GETTEXTA                     equ     WM_USER+02
  2249. SB_GETTEXTLENGTHA               equ     WM_USER+03
  2250. SB_SETPARTS                     equ     WM_USER+04
  2251. SB_GETPARTS                     equ     WM_USER+06
  2252. SB_GETBORDERS                   equ     WM_USER+07
  2253. SB_SETMINHEIGHT                 equ     WM_USER+08
  2254. SB_SIMPLE                       equ     WM_USER+09
  2255. SB_GETRECT                      equ     WM_USER+10
  2256. SB_SETTEXTW                     equ     WM_USER+11
  2257. SB_GETTEXTLENGTHW               equ     WM_USER+12
  2258. SB_GETTEXTW                     equ     WM_USER+13
  2259. ;
  2260.                                 if      UNICODE
  2261. SB_GETTEXT                      equ     SB_GETTEXTW
  2262. SB_SETTEXT                      equ     SB_SETTEXTW
  2263. SB_GETTEXTLENGTH                equ     SB_GETTEXTLENGTHW
  2264.                                 else
  2265. SB_GETTEXT                      equ     SB_GETTEXTA
  2266. SB_SETTEXT                      equ     SB_SETTEXTA
  2267. SB_GETTEXTLENGTH                equ     SB_GETTEXTLENGTHA
  2268.                                 endif
  2269. ;
  2270. ;------------------------------------------------------------------------------
  2271. ;
  2272. ; ===================
  2273. ; scroll bar messages
  2274. ; ===================
  2275. ;
  2276. SBM_SETPOS                      equ     00E0h
  2277. SBM_GETPOS                      equ     00E1h
  2278. SBM_SETRANGE                    equ     00E2h
  2279. SBM_GETRANGE                    equ     00E3h
  2280. SBM_ENABLE_ARROWS               equ     00E4h
  2281. SBM_SETRANGEREDRAW              equ     00E6h
  2282. SBM_SETSCROLLINFO               equ     00E9h
  2283. SBM_GETSCROLLINFO               equ     00EAh
  2284. ;
  2285. ;------------------------------------------------------------------------------
  2286. ;
  2287. ; =================
  2288. ; scroll bar styles
  2289. ; =================
  2290. ;
  2291. SBS_HORZ                        equ     0000h
  2292. SBS_VERT                        equ     0001h
  2293. SBS_TOPALIGN                    equ     0002h
  2294. SBS_LEFTALIGN                   equ     0002h
  2295. SBS_BOTTOMALIGN                 equ     0004h
  2296. SBS_RIGHTALIGN                  equ     0004h
  2297. SBS_SIZEBOXTOPLEFTALIGN         equ     0002h
  2298. SBS_SIZEBOXBOTTOMRIGHTALIGN     equ     0004h
  2299. SBS_SIZEBOX                     equ     0008h
  2300. SBS_SIZEGRIP                    equ     0010h
  2301. ;
  2302. ;------------------------------------------------------------------------------
  2303. ;
  2304. ; ================
  2305. ; status bar types
  2306. ; ================
  2307. ;
  2308. SBT_DEFAULT                     equ     0000h
  2309. SBT_NOBORDERS                   equ     0100h
  2310. SBT_POPOUT                      equ     0200h
  2311. SBT_RTLREADING                  equ     0400h
  2312. SBT_OWNERDRAW                   equ     1000h
  2313. ;
  2314. ;------------------------------------------------------------------------------
  2315. ;
  2316. ; ===================
  2317. ; security attributes
  2318. ; ===================
  2319. ;
  2320. SECURITY_ANONYMOUS              equ     00000000h
  2321. SECURITY_IDENTIFICATION         equ     00010000h
  2322. SECURITY_IMPERSONATION          equ     00020000h
  2323. SECURITY_DELEGATION             equ     00030000h
  2324. ;
  2325. SECURITY_CONTEXT_TRACKING       equ     00040000h
  2326. SECURITY_EFFECTIVE_ONLY         equ     00080000h
  2327. ;
  2328. SECURITY_SQOS_PRESENT           equ     00100000h
  2329. SECURITY_VALID_SQOS_FLAGS       equ     001F0000h
  2330. ;
  2331. ;------------------------------------------------------------------------------
  2332. ;
  2333. ; =====================
  2334. ; WM_SIZE wParam values
  2335. ; =====================
  2336. ;
  2337. SIZE_RESTORED                   equ     0
  2338. SIZE_MINIMIZED                  equ     1
  2339. SIZE_MAXIMIZED                  equ     2
  2340. SIZE_MAXSHOW                    equ     3
  2341. SIZE_MAXHIDE                    equ     4
  2342. ;
  2343. SIZENORMAL                      equ     SIZE_RESTORED
  2344. SIZEICONIC                      equ     SIZE_MINIMIZED
  2345. SIZEFULLSCREEN                  equ     SIZE_MAXIMIZED
  2346. SIZEZOOMSHOW                    equ     SIZE_MAXSHOW
  2347. SIZEZOOMHIDE                    equ     SIZE_MAXHIDE
  2348. ;
  2349. ;------------------------------------------------------------------------------
  2350. ;
  2351. ; ========================
  2352. ; GetSystemMetrics() codes
  2353. ; ========================
  2354. ;
  2355. SM_CXSCREEN                     equ      0
  2356. SM_CYSCREEN                     equ      1
  2357. SM_CXVSCROLL                    equ      2
  2358. SM_CYHSCROLL                    equ      3
  2359. SM_CYCAPTION                    equ      4
  2360. SM_CXBORDER                     equ      5
  2361. SM_CYBORDER                     equ      6
  2362. SM_CXDLGFRAME                   equ      7
  2363. SM_CYDLGFRAME                   equ      8
  2364. SM_CYVTHUMB                     equ      9
  2365. SM_CXHTHUMB                     equ     10
  2366. SM_CXICON                       equ     11
  2367. SM_CYICON                       equ     12
  2368. SM_CXCURSOR                     equ     13
  2369. SM_CYCURSOR                     equ     14
  2370. SM_CYMENU                       equ     15
  2371. SM_CXFULLSCREEN                 equ     16
  2372. SM_CYFULLSCREEN                 equ     17
  2373. SM_CYKANJIWINDOW                equ     18
  2374. SM_MOUSEPRESENT                 equ     19
  2375. SM_CYVSCROLL                    equ     20
  2376. SM_CXHSCROLL                    equ     21
  2377. SM_DEBUG                        equ     22
  2378. SM_SWAPBUTTON                   equ     23
  2379. SM_RESERVED1                    equ     24
  2380. SM_RESERVED2                    equ     25
  2381. SM_RESERVED3                    equ     26
  2382. SM_RESERVED4                    equ     27
  2383. SM_CXMIN                        equ     28
  2384. SM_CYMIN                        equ     29
  2385. SM_CXSIZE                       equ     30
  2386. SM_CYSIZE                       equ     31
  2387. SM_CXFRAME                      equ     32
  2388. SM_CYFRAME                      equ     33
  2389. SM_CXMINTRACK                   equ     34
  2390. SM_CYMINTRACK                   equ     35
  2391. SM_CXDOUBLECLK                  equ     36
  2392. SM_CYDOUBLECLK                  equ     37
  2393. SM_CXICONSPACING                equ     38
  2394. SM_CYICONSPACING                equ     39
  2395. SM_MENUDROPALIGNMENT            equ     40
  2396. SM_PENWINDOWS                   equ     41
  2397. SM_DBCSENABLED                  equ     42
  2398. SM_CMOUSEBUTTONS                equ     43
  2399. SM_SECURE                       equ     44
  2400. SM_CXEDGE                       equ     45
  2401. SM_CYEDGE                       equ     46
  2402. SM_CXMINSPACING                 equ     47
  2403. SM_CYMINSPACING                 equ     48
  2404. SM_CXSMICON                     equ     49
  2405. SM_CYSMICON                     equ     50
  2406. SM_CYSMCAPTION                  equ     51
  2407. SM_CXSMSIZE                     equ     52
  2408. SM_CYSMSIZE                     equ     53
  2409. SM_CXMENUSIZE                   equ     54
  2410. SM_CYMENUSIZE                   equ     55
  2411. SM_ARRANGE                      equ     56
  2412. SM_CXMINIMIZED                  equ     57
  2413. SM_CYMINIMIZED                  equ     58
  2414. SM_CXMAXTRACK                   equ     59
  2415. SM_CYMAXTRACK                   equ     60
  2416. SM_CXMAXIMIZED                  equ     61
  2417. SM_CYMAXIMIZED                  equ     62
  2418. SM_NETWORK                      equ     63
  2419. SM_CLEANBOOT                    equ     67
  2420. SM_CXDRAG                       equ     68
  2421. SM_CYDRAG                       equ     69
  2422. SM_SHOWSOUNDS                   equ     70
  2423. SM_CXMENUCHECK                  equ     71
  2424. SM_CYMENUCHECK                  equ     72
  2425. SM_SLOWMACHINE                  equ     73
  2426. SM_MIDEASTENABLED               equ     74
  2427. ;
  2428. SM_CXFIXEDFRAME                 equ     SM_CXDLGFRAME
  2429. SM_CYFIXEDFRAME                 equ     SM_CYDLGFRAME
  2430. SM_CXSIZEFRAME                  equ     SM_CXFRAME
  2431. SM_CYSIZEFRAME                  equ     SM_CYFRAME
  2432. ;
  2433. ;------------------------------------------------------------------------------
  2434. ;
  2435. ; =====================
  2436. ; static control styles
  2437. ; =====================
  2438. ;
  2439. SS_LEFT                         equ     0000h
  2440. SS_CENTER                       equ     0001h
  2441. SS_RIGHT                        equ     0002h
  2442. SS_ICON                         equ     0003h
  2443. SS_BLACKRECT                    equ     0004h
  2444. SS_GRAYRECT                     equ     0005h
  2445. SS_WHITERECT                    equ     0006h
  2446. SS_BLACKFRAME                   equ     0007h
  2447. SS_GRAYFRAME                    equ     0008h
  2448. SS_WHITEFRAME                   equ     0009h
  2449. SS_USERITEM                     equ     000Ah
  2450. SS_SIMPLE                       equ     000Bh
  2451. SS_LEFTNOWORDWRAP               equ     000Ch
  2452. SS_BITMAP                       equ     000Eh
  2453. SS_OWNERDRAW                    equ     000Dh
  2454. SS_ENHMETAFILE                  equ     000Fh
  2455. SS_ETCHEDHORZ                   equ     0010h
  2456. SS_ETCHEDVERT                   equ     0011h
  2457. SS_ETCHEDFRAME                  equ     0012h
  2458. SS_TYPEMASK                     equ     001Fh
  2459. SS_NOPREFIX                     equ     0080h
  2460. SS_NOTIFY                       equ     0100h
  2461. SS_CENTERIMAGE                  equ     0200h
  2462. SS_RIGHTJUST                    equ     0400h
  2463. SS_REALSIZEIMAGE                equ     0800h
  2464. SS_SUNKEN                       equ     1000h
  2465. ;
  2466. ;------------------------------------------------------------------------------
  2467. ;
  2468. ; ================
  2469. ; startup commands
  2470. ; ================
  2471. ;
  2472. STARTF_USESHOWWINDOW            equ     00000001h
  2473. STARTF_USESIZE                  equ     00000002h
  2474. STARTF_USEPOSITION              equ     00000004h
  2475. STARTF_USECOUNTCHARS            equ     00000008h
  2476. STARTF_USEFILLATTRIBUTE         equ     00000010h
  2477. STARTF_RUNFULLSCREEN            equ     00000020h       ;ignored for non-x86
  2478. STARTF_FORCEONFEEDBACK          equ     00000040h
  2479. STARTF_FORCEOFFFEEDBACK         equ     00000080h
  2480. STARTF_USESTDHANDLES            equ     00000100h
  2481. STARTF_USEHOTKEY                equ     00000200h
  2482. ;
  2483. ;------------------------------------------------------------------------------
  2484. ;
  2485. ; ============
  2486. ; status codes
  2487. ; ============
  2488. ;
  2489. STATUS_WAIT_0                   equ     000000000h
  2490. STATUS_ABANDONED_WAIT_0         equ     000000080h
  2491. STATUS_USER_APC                 equ     0000000C0h
  2492. STATUS_TIMEOUT                  equ     000000102h
  2493. STATUS_PENDING                  equ     000000103h
  2494. STATUS_SEGMENT_NOTIFICATION     equ     040000005h
  2495. STATUS_GUARD_PAGE_VIOLATION     equ     080000001h
  2496. STATUS_DATATYPE_MISALIGNMENT    equ     080000002h
  2497. STATUS_BREAKPOINT               equ     080000003h
  2498. STATUS_SINGLE_STEP              equ     080000004h
  2499. STATUS_ACCESS_VIOLATION         equ     0C0000005h
  2500. STATUS_IN_PAGE_ERROR            equ     0C0000006h
  2501. STATUS_NO_MEMORY                equ     0C0000017h
  2502. STATUS_ILLEGAL_INSTRUCTION      equ     0C000001Dh
  2503. STATUS_NONCONTINUABLE_EXCEPTION equ     0C0000025h
  2504. STATUS_INVALID_DISPOSITION      equ     0C0000026h
  2505. STATUS_ARRAY_BOUNDS_EXCEEDED    equ     0C000008Ch
  2506. STATUS_FLOAT_DENORMAL_OPERAND   equ     0C000008Dh
  2507. STATUS_FLOAT_DIVIDE_BY_ZERO     equ     0C000008Eh
  2508. STATUS_FLOAT_INEXACT_RESULT     equ     0C000008Fh
  2509. STATUS_FLOAT_INVALID_OPERATION  equ     0C0000090h
  2510. STATUS_FLOAT_OVERFLOW           equ     0C0000091h
  2511. STATUS_FLOAT_STACK_CHECK        equ     0C0000092h
  2512. STATUS_FLOAT_UNDERFLOW          equ     0C0000093h
  2513. STATUS_INTEGER_DIVIDE_BY_ZERO   equ     0C0000094h
  2514. STATUS_INTEGER_OVERFLOW         equ     0C0000095h
  2515. STATUS_PRIVILEGED_INSTRUCTION   equ     0C0000096h
  2516. STATUS_STACK_OVERFLOW           equ     0C00000FDh
  2517. STATUS_CONTROL_C_EXIT           equ     0C000013Ah
  2518. ;
  2519. ;------------------------------------------------------------------------------
  2520. ;
  2521. ; ========================
  2522. ; toolbar standard bitmaps
  2523. ; ========================
  2524. ;
  2525. STD_CUT                         equ      0
  2526. STD_COPY                        equ      1
  2527. STD_PASTE                       equ      2
  2528. STD_UNDO                        equ      3
  2529. STD_REDOW                       equ      4
  2530. STD_DELETE                      equ      5
  2531. STD_FILENEW                     equ      6
  2532. STD_FILEOPEN                    equ      7
  2533. STD_FILESAVE                    equ      8
  2534. STD_PRINTPRE                    equ      9
  2535. STD_PROPERTIES                  equ     10
  2536. STD_HELP                        equ     11
  2537. STD_FIND                        equ     12
  2538. STD_REPLACE                     equ     13
  2539. STD_PRINT                       equ     14
  2540. ;
  2541. ;------------------------------------------------------------------------------
  2542. ;
  2543. ; =====================
  2544. ; standard file handles
  2545. ; =====================
  2546. ;
  2547. STD_INPUT_HANDLE                equ     -10
  2548. STD_OUTPUT_HANDLE               equ     -11
  2549. STD_ERROR_HANDLE                equ     -12
  2550. ;
  2551. ;------------------------------------------------------------------------------
  2552. ;
  2553. ; =====================
  2554. ; ShowWindow() commands
  2555. ; =====================
  2556. ;
  2557. SW_HIDE                         equ      0
  2558. SW_SHOWNORMAL                   equ      1
  2559. SW_NORMAL                       equ      1
  2560. SW_SHOWMINIMIZED                equ      2
  2561. SW_SHOWMAXIMIZED                equ      3
  2562. SW_MAXIMIZE                     equ      3
  2563. SW_SHOWNOACTIVATE               equ      4
  2564. SW_SHOW                         equ      5
  2565. SW_MINIMIZE                     equ      6
  2566. SW_SHOWMINNOACTIVE              equ      7
  2567. SW_SHOWNA                       equ      8
  2568. SW_RESTORE                      equ      9
  2569. SW_SHOWDEFAULT                  equ     10
  2570. SW_MAX                          equ     10
  2571. ;
  2572. ;------------------------------------------------------------------------------
  2573. ;
  2574. ; ====================
  2575. ; SetWindowPos() flags
  2576. ; ====================
  2577. ;
  2578. SWP_NOSIZE                      equ     0001h
  2579. SWP_NOMOVE                      equ     0002h
  2580. SWP_NOZORDER                    equ     0004h
  2581. SWP_NOREDRAW                    equ     0008h
  2582. SWP_NOACTIVATE                  equ     0010h
  2583. SWP_FRAMECHANGED                equ     0020h
  2584. SWP_SHOWWINDOW                  equ     0040h
  2585. SWP_HIDEWINDOW                  equ     0080h
  2586. SWP_NOCOPYBITS                  equ     0100h
  2587. SWP_NOOWNERZORDER               equ     0200h
  2588. SWP_NOSENDCHANGING              equ     0400h
  2589. SWP_DEFERERASE                  equ     2000h
  2590. SWP_ASYNCWINDOWPOS              equ     4000h
  2591. ;
  2592. SWP_DRAWFRAME                   equ     SWP_FRAMECHANGED
  2593. SWP_NOREPOSITION                equ     SWP_NOOWNERZORDER
  2594. ;
  2595. ;------------------------------------------------------------------------------
  2596. ;
  2597. ; ======================
  2598. ; text alignment options
  2599. ; ======================
  2600. ;
  2601. TA_NOUPDATECP                   equ     0000h
  2602. TA_UPDATECP                     equ     0001h
  2603. ;
  2604. TA_LEFT                         equ     0000h
  2605. TA_RIGHT                        equ     0002h
  2606. TA_CENTER                       equ     0006h
  2607. ;
  2608. TA_TOP                          equ     0000h
  2609. TA_BOTTOM                       equ     0008h
  2610. TA_BASELINE                     equ     0018h
  2611. TA_RTLREADING                   equ     0100h
  2612. TA_MASK                         equ     TA_BASELINE+TA_CENTER+TA_UPDATECP+\
  2613.                                         TA_RTLREADING
  2614. ;
  2615. ;------------------------------------------------------------------------------
  2616. ;
  2617. ; ================
  2618. ; toolbar messages
  2619. ; ================
  2620. ;
  2621. TB_ENABLEBUTTON                 equ     WM_USER+01
  2622. TB_CHECKBUTTON                  equ     WM_USER+02
  2623. TB_PRESSBUTTON                  equ     WM_USER+03
  2624. TB_HIDEBUTTON                   equ     WM_USER+04
  2625. TB_INDETERMINATE                equ     WM_USER+05
  2626. TB_ISBUTTONENABLED              equ     WM_USER+09
  2627. TB_ISBUTTONCHECKED              equ     WM_USER+10
  2628. TB_ISBUTTONPRESSED              equ     WM_USER+11
  2629. TB_ISBUTTONHIDDEN               equ     WM_USER+12
  2630. TB_ISBUTTONINDETERMINATE        equ     WM_USER+13
  2631. TB_SETSTATE                     equ     WM_USER+17
  2632. TB_GETSTATE                     equ     WM_USER+18
  2633. TB_ADDBITMAP                    equ     WM_USER+19
  2634. TB_ADDBUTTONS                   equ     WM_USER+20
  2635. TB_INSERTBUTTON                 equ     WM_USER+21
  2636. TB_DELETEBUTTON                 equ     WM_USER+22
  2637. TB_GETBUTTON                    equ     WM_USER+23
  2638. TB_BUTTONCOUNT                  equ     WM_USER+24
  2639. TB_COMMANDTOINDEX               equ     WM_USER+25
  2640. TB_SAVERESTOREA                 equ     WM_USER+26
  2641. TB_CUSTOMIZE                    equ     WM_USER+27
  2642. TB_ADDSTRINGA                   equ     WM_USER+28
  2643. TB_GETITEMRECT                  equ     WM_USER+29
  2644. TB_BUTTONSTRUCTSIZE             equ     WM_USER+30
  2645. TB_SETBUTTONSIZE                equ     WM_USER+31
  2646. TB_SETBITMAPSIZE                equ     WM_USER+32
  2647. TB_AUTOSIZE                     equ     WM_USER+33
  2648. TB_GETTOOLTIPS                  equ     WM_USER+35
  2649. TB_SETTOOLTIPS                  equ     WM_USER+36
  2650. TB_SETPARENT                    equ     WM_USER+37
  2651. TB_SETROWS                      equ     WM_USER+39
  2652. TB_GETROWS                      equ     WM_USER+40
  2653. TB_GETBITMAPFLAGS               equ     WM_USER+41
  2654. TB_SETCMDID                     equ     WM_USER+42
  2655. TB_CHANGEBITMAP                 equ     WM_USER+43
  2656. TB_GETBITMAP                    equ     WM_USER+44
  2657. TB_GETBUTTONTEXTA               equ     WM_USER+45
  2658. TB_REPLACEBITMAP                equ     WM_USER+46
  2659. ;
  2660. TB_GETBUTTONTEXTW               equ     WM_USER+75
  2661. TB_SAVERESTOREW                 equ     WM_USER+76
  2662. TB_ADDSTRINGW                   equ     WM_USER+77
  2663. ;
  2664.                                 if      UNICODE
  2665. TB_GETBUTTONTEXT                equ     TB_GETBUTTONTEXTW
  2666. TB_SAVERESTORE                  equ     TB_SAVERESTOREW
  2667. TB_ADDSTRING                    equ     TB_ADDSTRINGW
  2668.                                 else
  2669. TB_GETBUTTONTEXT                equ     TB_GETBUTTONTEXTA
  2670. TB_SAVERESTORE                  equ     TB_SAVERESTOREA
  2671. TB_ADDSTRING                    equ     TB_ADDSTRINGA
  2672.                                 endif
  2673. ;
  2674. ;------------------------------------------------------------------------------
  2675. ;
  2676. ; =====================
  2677. ; toolbar notifications
  2678. ; =====================
  2679. ;
  2680. TBN_FIRST                       equ     -700
  2681. TBN_LAST                        equ     TBN_FIRST-20
  2682. ;
  2683. TBN_GETBUTTONINFOA              equ     TBN_FIRST-00
  2684. TBN_BEGINDRAG                   equ     TBN_FIRST-01
  2685. TBN_ENDDRAG                     equ     TBN_FIRST-02
  2686. TBN_BEGINADJUST                 equ     TBN_FIRST-03
  2687. TBN_ENDADJUST                   equ     TBN_FIRST-04
  2688. TBN_RESET                       equ     TBN_FIRST-05
  2689. TBN_QUERYINSERT                 equ     TBN_FIRST-06
  2690. TBN_QUERYDELETE                 equ     TBN_FIRST-07
  2691. TBN_TOOLBARCHANGE               equ     TBN_FIRST-08
  2692. TBN_CUSTHELP                    equ     TBN_FIRST-09
  2693. TBN_GETBUTTONINFOW              equ     TBN_FIRST-20
  2694. ;
  2695. ;------------------------------------------------------------------------------
  2696. ;
  2697. ; ==============
  2698. ; toolbar states
  2699. ; ==============
  2700. ;
  2701. TBSTATE_CHECKED                 equ     0001h
  2702. TBSTATE_PRESSED                 equ     0002h
  2703. TBSTATE_ENABLED                 equ     0004h
  2704. TBSTATE_HIDDEN                  equ     0008h
  2705. TBSTATE_INDETERMINATE           equ     0010h
  2706. TBSTATE_WRAP                    equ     0020h
  2707. ;
  2708. ;------------------------------------------------------------------------------
  2709. ;
  2710. ; ==============
  2711. ; toolbar styles
  2712. ; ==============
  2713. ;
  2714. TBSTYLE_BUTTON                  equ     0000h
  2715. TBSTYLE_SEP                     equ     0001h
  2716. TBSTYLE_CHECK                   equ     0002h
  2717. TBSTYLE_GROUP                   equ     0004h
  2718. TBSTYLE_TOOLTIPS                equ     0100h
  2719. TBSTYLE_WRAPABLE                equ     0200h
  2720. TBSTYLE_ALTDRAG                 equ     0400h
  2721. ;
  2722. TBSTYLE_CHECKGROUP              equ     TBSTYLE_GROUP+TBSTYLE_CHECK
  2723. ;
  2724. ;------------------------------------------------------------------------------
  2725. ;
  2726. ; ===================
  2727. ; thread access flags
  2728. ; ===================
  2729. ;
  2730. THREAD_TERMINATE                equ     0001h
  2731. THREAD_SUSPEND_RESUME           equ     0002h
  2732. THREAD_GET_CONTEXT              equ     0008h
  2733. THREAD_SET_CONTEXT              equ     0010h
  2734. THREAD_SET_INFORMATION          equ     0020h
  2735. THREAD_QUERY_INFORMATION        equ     0040h
  2736. THREAD_SET_THREAD_TOKEN         equ     0080h
  2737. THREAD_IMPERSONATE              equ     0100h
  2738. THREAD_DIRECT_IMPERSONATION     equ     0200h
  2739. ;
  2740. THREAD_ALL_ACCESS               equ     STANDARD_RIGHTS_REQUIRED+\
  2741.                                         SYNCHRONIZE+\
  2742.                                         03FFh
  2743. ;
  2744. ;------------------------------------------------------------------------------
  2745. ;
  2746. ; =================
  2747. ; thread priorities
  2748. ; =================
  2749. ;
  2750. THREAD_BASE_PRIORITY_IDLE       equ     -15
  2751. THREAD_BASE_PRIORITY_MIN        equ      -2
  2752. THREAD_BASE_PRIORITY_MAX        equ       2
  2753. THREAD_BASE_PRIORITY_LOWRT      equ      15
  2754. ;
  2755. THREAD_PRIORITY_LOWEST          equ     THREAD_BASE_PRIORITY_MIN
  2756. THREAD_PRIORITY_BELOW_NORMAL    equ     THREAD_PRIORITY_LOWEST+1
  2757. THREAD_PRIORITY_NORMAL          equ       0
  2758. THREAD_PRIORITY_ABOVE_NORMAL    equ     THREAD_PRIORITY_HIGHEST-1
  2759. THREAD_PRIORITY_HIGHEST         equ     THREAD_BASE_PRIORITY_MAX
  2760. ;
  2761. THREAD_PRIORITY_TIME_CRITICAL   equ     THREAD_BASE_PRIORITY_LOWRT
  2762. THREAD_PRIORITY_IDLE            equ     THREAD_BASE_PRIORITY_IDLE
  2763. ;
  2764. THREAD_PRIORITY_ERROR_RETURN    equ      -1
  2765. ;
  2766. ;------------------------------------------------------------------------------
  2767. ;
  2768. ; ==================
  2769. ; tree view messages
  2770. ; ==================
  2771. ;
  2772. TVM_FIRST                       equ     1100h
  2773. TV_FIRST                        equ     TVM_FIRST
  2774. ;
  2775. TVM_INSERTITEMA                 equ     TVM_FIRST+00
  2776. TVM_DELETEITEM                  equ     TVM_FIRST+01
  2777. TVM_EXPAND                      equ     TVM_FIRST+02
  2778. TVM_GETITEMRECT                 equ     TVM_FIRST+04
  2779. TVM_GETCOUNT                    equ     TVM_FIRST+05
  2780. TVM_GETINDENT                   equ     TVM_FIRST+06
  2781. TVM_SETINDENT                   equ     TVM_FIRST+07
  2782. TVM_GETIMAGELIST                equ     TVM_FIRST+08
  2783. TVM_SETIMAGELIST                equ     TVM_FIRST+09
  2784. TVM_GETNEXTITEM                 equ     TVM_FIRST+10
  2785. TVM_SELECTITEM                  equ     TVM_FIRST+11
  2786. TVM_GETITEMA                    equ     TVM_FIRST+12
  2787. TVM_SETITEMA                    equ     TVM_FIRST+13
  2788. TVM_EDITLABELA                  equ     TVM_FIRST+14
  2789. TVM_GETEDITCONTROL              equ     TVM_FIRST+15
  2790. TVM_GETVISIBLECOUNT             equ     TVM_FIRST+16
  2791. TVM_HITTEST                     equ     TVM_FIRST+17
  2792. TVM_CREATEDRAGIMAGE             equ     TVM_FIRST+18
  2793. TVM_SORTCHILDREN                equ     TVM_FIRST+19
  2794. TVM_ENSUREVISIBLE               equ     TVM_FIRST+20
  2795. TVM_SORTCHILDRENCB              equ     TVM_FIRST+21
  2796. TVM_ENDEDITLABELNOW             equ     TVM_FIRST+22
  2797. TVM_GETISEARCHSTRINGA           equ     TVM_FIRST+23
  2798. ;
  2799. TVM_INSERTITEMW                 equ     TVM_FIRST+50
  2800. TVM_GETITEMW                    equ     TVM_FIRST+62
  2801. TVM_SETITEMW                    equ     TVM_FIRST+63
  2802. TVM_GETISEARCHSTRINGW           equ     TVM_FIRST+64
  2803. TVM_EDITLABELW                  equ     TVM_FIRST+65
  2804. ;
  2805.                                 if      UNICODE
  2806. TVM_INSERTITEM                  equ     TVM_INSERTITEMW
  2807. TVM_GETITEM                     equ     TVM_GETITEMW
  2808. TVM_SETITEM                     equ     TVM_SETITEMW
  2809. TVM_GETISEARCHSTRING            equ     TVM_GETISEARCHSTRINGW
  2810. TVM_EDITLABEL                   equ     TVM_EDITLABELW
  2811.                                 else
  2812. TVM_INSERTITEM                  equ     TVM_INSERTITEMA
  2813. TVM_GETITEM                     equ     TVM_GETITEMA
  2814. TVM_SETITEM                     equ     TVM_SETITEMA
  2815. TVM_GETISEARCHSTRING            equ     TVM_GETISEARCHSTRINGA
  2816. TVM_EDITLABEL                   equ     TVM_EDITLABELA
  2817.                                 endif
  2818. ;
  2819. ;------------------------------------------------------------------------------
  2820. ;
  2821. ; =======================
  2822. ; tree view notifications
  2823. ; =======================
  2824. ;
  2825. TVN_FIRST                       equ     -400
  2826. TVN_LAST                        equ     TVN_FIRST-99
  2827. ;
  2828. TVN_SELCHANGINGA                equ     TVN_FIRST-01
  2829. TVN_SELCHANGEDA                 equ     TVN_FIRST-02
  2830. TVN_GETDISPINFOA                equ     TVN_FIRST-03
  2831. TVN_SETDISPINFOA                equ     TVN_FIRST-04
  2832. TVN_ITEMEXPANDINGA              equ     TVN_FIRST-05
  2833. TVN_ITEMEXPANDEDA               equ     TVN_FIRST-06
  2834. TVN_BEGINDRAGA                  equ     TVN_FIRST-07
  2835. TVN_BEGINRDRAGA                 equ     TVN_FIRST-08
  2836. TVN_DELETEITEMA                 equ     TVN_FIRST-09
  2837. TVN_ENDLABELEDITA               equ     TVN_FIRST-11
  2838. TVN_KEYDOWN                     equ     TVN_FIRST-12
  2839. ;
  2840. TVN_SELCHANGINGW                equ     TVN_FIRST-50
  2841. TVN_SELCHANGEDW                 equ     TVN_FIRST-51
  2842. TVN_GETDISPINFOW                equ     TVN_FIRST-52
  2843. TVN_SETDISPINFOW                equ     TVN_FIRST-53
  2844. TVN_ITEMEXPANDINGW              equ     TVN_FIRST-54
  2845. TVN_ITEMEXPANDEDW               equ     TVN_FIRST-55
  2846. TVN_BEGINDRAGW                  equ     TVN_FIRST-56
  2847. TVN_BEGINRDRAGW                 equ     TVN_FIRST-57
  2848. TVN_DELETEITEMW                 equ     TVN_FIRST-58
  2849. TVN_BEGINLABELEDITA             equ     TVN_FIRST-10
  2850. TVN_BEGINLABELEDITW             equ     TVN_FIRST-59
  2851. TVN_ENDLABELEDITW               equ     TVN_FIRST-60
  2852. ;
  2853.                                 if      UNICODE
  2854. TVN_SELCHANGING                 equ     TVN_SELCHANGINGW
  2855. TVN_SELCHANGED                  equ     TVN_SELCHANGEDW
  2856. TVN_GETDISPINFO                 equ     TVN_GETDISPINFOW
  2857. TVN_SETDISPINFO                 equ     TVN_SETDISPINFOW
  2858. TVN_ITEMEXPANDING               equ     TVN_ITEMEXPANDINGW
  2859. TVN_ITEMEXPANDED                equ     TVN_ITEMEXPANDEDW
  2860. TVN_BEGINDRAG                   equ     TVN_BEGINDRAGW
  2861. TVN_BEGINRDRAG                  equ     TVN_BEGINRDRAGW
  2862. TVN_DELETEITEM                  equ     TVN_DELETEITEMW
  2863. TVN_BEGINLABELEDIT              equ     TVN_BEGINLABELEDITW
  2864. TVN_ENDLABELEDIT                equ     TVN_ENDLABELEDITW
  2865.                                 else
  2866. TVN_SELCHANGING                 equ     TVN_SELCHANGINGA
  2867. TVN_SELCHANGED                  equ     TVN_SELCHANGEDA
  2868. TVN_GETDISPINFO                 equ     TVN_GETDISPINFOA
  2869. TVN_SETDISPINFO                 equ     TVN_SETDISPINFOA
  2870. TVN_ITEMEXPANDING               equ     TVN_ITEMEXPANDINGA
  2871. TVN_ITEMEXPANDED                equ     TVN_ITEMEXPANDEDA
  2872. TVN_BEGINDRAG                   equ     TVN_BEGINDRAGA
  2873. TVN_BEGINRDRAG                  equ     TVN_BEGINRDRAGA
  2874. TVN_DELETEITEM                  equ     TVN_DELETEITEMA
  2875. TVN_BEGINLABELEDIT              equ     TVN_BEGINLABELEDITA
  2876. TVN_ENDLABELEDIT                equ     TVN_ENDLABELEDITA
  2877.                                 endif
  2878. ;
  2879. ;------------------------------------------------------------------------------
  2880. ;
  2881. ; ================
  2882. ; tree view styles
  2883. ; ================
  2884. ;
  2885. TVS_HASBUTTONS                  equ     00000001h
  2886. TVS_HASLINES                    equ     00000002h
  2887. TVS_LINESATROOT                 equ     00000004h
  2888. TVS_EDITLABELS                  equ     00000008h
  2889. TVS_DISABLEDRAGDROP             equ     00000010h
  2890. TVS_SHOWSELALWAYS               equ     00000020h
  2891. ;
  2892. ;------------------------------------------------------------------------------
  2893. ;
  2894. ; ================
  2895. ; os platform id's
  2896. ; ================
  2897. ;
  2898. VER_PLATFORM_WIN32s             equ     0
  2899. VER_PLATFORM_WIN32_WINDOWS      equ     1
  2900. VER_PLATFORM_WIN32_NT           equ     2
  2901. ;
  2902. ;------------------------------------------------------------------------------
  2903. ;
  2904. ; ====================
  2905. ; toolbar view bitmaps
  2906. ; ====================
  2907. ;
  2908. VIEW_LARGEICONS                 equ      0
  2909. VIEW_SMALLICONS                 equ      1
  2910. VIEW_LIST                       equ      2
  2911. VIEW_DETAILS                    equ      3
  2912. VIEW_SORTNAME                   equ      4
  2913. VIEW_SORTSIZE                   equ      5
  2914. VIEW_SORTDATE                   equ      6
  2915. VIEW_SORTTYPE                   equ      7
  2916. VIEW_PARENTFOLDER               equ      8
  2917. VIEW_NETCONNECT                 equ      9
  2918. VIEW_NETDISCONNECT              equ     10
  2919. VIEW_NEWFOLDER                  equ     11
  2920. ;
  2921. ;------------------------------------------------------------------------------
  2922. ;
  2923. ; =====================
  2924. ; standard virtual keys
  2925. ; =====================
  2926. ;
  2927. VK_LBUTTON                      equ     01h
  2928. VK_RBUTTON                      equ     02h
  2929. VK_CANCEL                       equ     03h
  2930. VK_MBUTTON                      equ     04h
  2931. ;
  2932. VK_BACK                         equ     08h
  2933. VK_TAB                          equ     09h
  2934. VK_CLEAR                        equ     0Ch
  2935. VK_RETURN                       equ     0Dh
  2936. VK_SHIFT                        equ     10h
  2937. VK_CONTROL                      equ     11h
  2938. VK_MENU                         equ     12h
  2939. VK_PAUSE                        equ     13h
  2940. VK_CAPITAL                      equ     14h
  2941. VK_ESCAPE                       equ     1Bh
  2942. ;
  2943. VK_SPACE                        equ     20h
  2944. VK_PRIOR                        equ     21h
  2945. VK_NEXT                         equ     22h
  2946. VK_END                          equ     23h
  2947. VK_HOME                         equ     24h
  2948. VK_LEFT                         equ     25h
  2949. VK_UP                           equ     26h
  2950. VK_RIGHT                        equ     27h
  2951. VK_DOWN                         equ     28h
  2952. VK_SELECT                       equ     29h
  2953. VK_PRINT                        equ     2Ah
  2954. VK_EXECUTE                      equ     2Bh
  2955. VK_SNAPSHOT                     equ     2Ch
  2956. VK_INSERT                       equ     2Dh
  2957. VK_DELETE                       equ     2Eh
  2958. VK_HELP                         equ     2Fh
  2959. ;
  2960. VK_LWIN                         equ     5Bh
  2961. VK_RWIN                         equ     5Ch
  2962. VK_APPS                         equ     5Dh
  2963. ;
  2964. VK_NUMPAD0                      equ     60h
  2965. VK_NUMPAD1                      equ     61h
  2966. VK_NUMPAD2                      equ     62h
  2967. VK_NUMPAD3                      equ     63h
  2968. VK_NUMPAD4                      equ     64h
  2969. VK_NUMPAD5                      equ     65h
  2970. VK_NUMPAD6                      equ     66h
  2971. VK_NUMPAD7                      equ     67h
  2972. VK_NUMPAD8                      equ     68h
  2973. VK_NUMPAD9                      equ     69h
  2974. VK_MULTIPLY                     equ     6Ah
  2975. VK_ADD                          equ     6Bh
  2976. VK_SEPARATOR                    equ     6Ch
  2977. VK_SUBTRACT                     equ     6Dh
  2978. VK_DECIMAL                      equ     6Eh
  2979. VK_DIVIDE                       equ     6Fh
  2980. VK_F1                           equ     70h
  2981. VK_F2                           equ     71h
  2982. VK_F3                           equ     72h
  2983. VK_F4                           equ     73h
  2984. VK_F5                           equ     74h
  2985. VK_F6                           equ     75h
  2986. VK_F7                           equ     76h
  2987. VK_F8                           equ     77h
  2988. VK_F9                           equ     78h
  2989. VK_F10                          equ     79h
  2990. VK_F11                          equ     7Ah
  2991. VK_F12                          equ     7Bh
  2992. VK_F13                          equ     7Ch
  2993. VK_F14                          equ     7Dh
  2994. VK_F15                          equ     7Eh
  2995. VK_F16                          equ     7Fh
  2996. VK_F17                          equ     80h
  2997. VK_F18                          equ     81h
  2998. VK_F19                          equ     82h
  2999. VK_F20                          equ     83h
  3000. VK_F21                          equ     84h
  3001. VK_F22                          equ     85h
  3002. VK_F23                          equ     86h
  3003. VK_F24                          equ     87h
  3004. ;
  3005. VK_NUMLOCK                      equ     90h
  3006. VK_SCROLL                       equ     91h
  3007. ;
  3008. ;------------------------------------------------------------------------------
  3009. ;
  3010. ; ====================
  3011. ; special virtual keys
  3012. ; ====================
  3013. ;
  3014. VK_LSHIFT                       equ     0A0h
  3015. VK_RSHIFT                       equ     0A1h
  3016. VK_LCONTROL                     equ     0A2h
  3017. VK_RCONTROL                     equ     0A3h
  3018. VK_LMENU                        equ     0A4h
  3019. VK_RMENU                        equ     0A5h
  3020. ;
  3021. VK_PROCESSKEY                   equ     0E5h
  3022. ;
  3023. VK_ATTN                         equ     0F6h
  3024. VK_CRSEL                        equ     0F7h
  3025. VK_EXSEL                        equ     0F8h
  3026. VK_EREOF                        equ     0F9h
  3027. VK_PLAY                         equ     0FAh
  3028. VK_ZOOM                         equ     0FBh
  3029. VK_NONAME                       equ     0FCh
  3030. VK_PA1                          equ     0FDh
  3031. VK_OEM_CLEAR                    equ     0FEh
  3032. ;
  3033. ;------------------------------------------------------------------------------
  3034. ;
  3035. ; =================
  3036. ; wait status codes
  3037. ; =================
  3038. ;
  3039. WAIT_FAILED                     equ     -1
  3040. WAIT_OBJECT_0                   equ     STATUS_WAIT_0
  3041. ;
  3042. WAIT_ABANDONED                  equ     STATUS_ABANDONED_WAIT_0
  3043. WAIT_ABANDONED_0                equ     STATUS_ABANDONED_WAIT_0
  3044. ;
  3045. WAIT_TIMEOUT                    equ     STATUS_TIMEOUT
  3046. WAIT_IO_COMPLETION              equ     STATUS_USER_APC
  3047. STILL_ACTIVE                    equ     STATUS_PENDING
  3048. ;
  3049. MAXIMUM_WAIT_OBJECTS            equ      64
  3050. MAXIMUM_SUSPEND_COUNT           equ     127
  3051. INFINITE                        equ      -1
  3052. ;
  3053. ;------------------------------------------------------------------------------
  3054. ;
  3055. ; ===============
  3056. ; window messages
  3057. ; ===============
  3058. ;
  3059. WM_NULL                         equ     0000h
  3060. WM_CREATE                       equ     0001h
  3061. WM_DESTROY                      equ     0002h
  3062. WM_MOVE                         equ     0003h
  3063. WM_SIZE                         equ     0005h
  3064. WM_ACTIVATE                     equ     0006h
  3065. WM_SETFOCUS                     equ     0007h
  3066. WM_KILLFOCUS                    equ     0008h
  3067. WM_ENABLE                       equ     000Ah
  3068. WM_SETREDRAW                    equ     000Bh
  3069. WM_SETTEXT                      equ     000Ch
  3070. WM_GETTEXT                      equ     000Dh
  3071. WM_GETTEXTLENGTH                equ     000Eh
  3072. WM_PAINT                        equ     000Fh
  3073. WM_CLOSE                        equ     0010h
  3074. WM_QUERYENDSESSION              equ     0011h
  3075. WM_QUIT                         equ     0012h
  3076. WM_QUERYOPEN                    equ     0013h
  3077. WM_ERASEBKGND                   equ     0014h
  3078. WM_SYSCOLORCHANGE               equ     0015h
  3079. WM_ENDSESSION                   equ     0016h
  3080. WM_SHOWWINDOW                   equ     0018h
  3081. WM_WININICHANGE                 equ     001Ah
  3082. WM_SETTINGCHANGE                equ     WM_WININICHANGE
  3083. WM_DEVMODECHANGE                equ     001Bh
  3084. WM_ACTIVATEAPP                  equ     001Ch
  3085. WM_FONTCHANGE                   equ     001Dh
  3086. WM_TIMECHANGE                   equ     001Eh
  3087. WM_CANCELMODE                   equ     001Fh
  3088. WM_SETCURSOR                    equ     0020h
  3089. WM_MOUSEACTIVATE                equ     0021h
  3090. WM_CHILDACTIVATE                equ     0022h
  3091. WM_QUEUESYNC                    equ     0023h
  3092. WM_GETMINMAXINFO                equ     0024h
  3093. WM_PAINTICON                    equ     0026h
  3094. WM_ICONERASEBKGND               equ     0027h
  3095. WM_NEXTDLGCTL                   equ     0028h
  3096. WM_SPOOLERSTATUS                equ     002Ah
  3097. WM_DRAWITEM                     equ     002Bh
  3098. WM_MEASUREITEM                  equ     002Ch
  3099. WM_DELETEITEM                   equ     002Dh
  3100. WM_VKEYTOITEM                   equ     002Eh
  3101. WM_CHARTOITEM                   equ     002Fh
  3102. WM_SETFONT                      equ     0030h
  3103. WM_GETFONT                      equ     0031h
  3104. WM_SETHOTKEY                    equ     0032h
  3105. WM_GETHOTKEY                    equ     0033h
  3106. WM_QUERYDRAGICON                equ     0037h
  3107. WM_COMPAREITEM                  equ     0039h
  3108. WM_COMPACTING                   equ     0041h
  3109. WM_COMMNOTIFY                   equ     0044h           ;no longer suported
  3110. WM_WINDOWPOSCHANGING            equ     0046h
  3111. WM_WINDOWPOSCHANGED             equ     0047h
  3112. WM_POWER                        equ     0048h
  3113. WM_COPYDATA                     equ     004Ah
  3114. WM_CANCELJOURNAL                equ     004Bh
  3115. WM_NOTIFY                       equ     004Eh
  3116. WM_INPUTLANGCHANGEREQUEST       equ     0050h
  3117. WM_INPUTLANGCHANGE              equ     0051h
  3118. WM_TCARD                        equ     0052h
  3119. WM_HELP                         equ     0053h
  3120. WM_USERCHANGED                  equ     0054h
  3121. WM_NOTIFYFORMAT                 equ     0055h
  3122. WM_CONTEXTMENU                  equ     007Bh
  3123. WM_STYLECHANGING                equ     007Ch
  3124. WM_STYLECHANGED                 equ     007Dh
  3125. WM_DISPLAYCHANGE                equ     007Eh
  3126. WM_GETICON                      equ     007Fh
  3127. WM_SETICON                      equ     0080h
  3128. WM_NCCREATE                     equ     0081h
  3129. WM_NCDESTROY                    equ     0082h
  3130. WM_NCCALCSIZE                   equ     0083h
  3131. WM_NCHITTEST                    equ     0084h
  3132. WM_NCPAINT                      equ     0085h
  3133. WM_NCACTIVATE                   equ     0086h
  3134. WM_GETDLGCODE                   equ     0087h
  3135. ;
  3136. WM_NCMOUSEMOVE                  equ     00A0h
  3137. WM_NCLBUTTONDOWN                equ     00A1h
  3138. WM_NCLBUTTONUP                  equ     00A2h
  3139. WM_NCLBUTTONDBLCLK              equ     00A3h
  3140. WM_NCRBUTTONDOWN                equ     00A4h
  3141. WM_NCRBUTTONUP                  equ     00A5h
  3142. WM_NCRBUTTONDBLCLK              equ     00A6h
  3143. WM_NCMBUTTONDOWN                equ     00A7h
  3144. WM_NCMBUTTONUP                  equ     00A8h
  3145. WM_NCMBUTTONDBLCLK              equ     00A9h
  3146. ;
  3147. WM_KEYFIRST                     equ     0100h
  3148. WM_KEYDOWN                      equ     0100h
  3149. WM_KEYUP                        equ     0101h
  3150. WM_CHAR                         equ     0102h
  3151. WM_DEADCHAR                     equ     0103h
  3152. WM_SYSKEYDOWN                   equ     0104h
  3153. WM_SYSKEYUP                     equ     0105h
  3154. WM_SYSCHAR                      equ     0106h
  3155. WM_SYSDEADCHAR                  equ     0107h
  3156. WM_KEYLAST                      equ     0108h
  3157. ;
  3158. WM_IME_STARTCOMPOSITION         equ     010Dh
  3159. WM_IME_ENDCOMPOSITION           equ     010Eh
  3160. WM_IME_COMPOSITION              equ     010Fh
  3161. WM_IME_KEYLAST                  equ     010Fh
  3162. WM_INITDIALOG                   equ     0110h
  3163. WM_COMMAND                      equ     0111h
  3164. WM_SYSCOMMAND                   equ     0112h
  3165. WM_TIMER                        equ     0113h
  3166. WM_HSCROLL                      equ     0114h
  3167. WM_VSCROLL                      equ     0115h
  3168. WM_INITMENU                     equ     0116h
  3169. WM_INITMENUPOPUP                equ     0117h
  3170. WM_MENUSELECT                   equ     011Fh
  3171. WM_MENUCHAR                     equ     0120h
  3172. WM_ENTERIDLE                    equ     0121h
  3173. WM_CTLCOLORMSGBOX               equ     0132h
  3174. WM_CTLCOLOREDIT                 equ     0133h
  3175. WM_CTLCOLORLISTBOX              equ     0134h
  3176. WM_CTLCOLORBTN                  equ     0135h
  3177. WM_CTLCOLORDLG                  equ     0136h
  3178. WM_CTLCOLORSCROLLBAR            equ     0137h
  3179. WM_CTLCOLORSTATIC               equ     0138h
  3180. ;
  3181. WM_MOUSEFIRST                   equ     0200h
  3182. WM_MOUSEMOVE                    equ     0200h
  3183. WM_LBUTTONDOWN                  equ     0201h
  3184. WM_LBUTTONUP                    equ     0202h
  3185. WM_LBUTTONDBLCLK                equ     0203h
  3186. WM_RBUTTONDOWN                  equ     0204h
  3187. WM_RBUTTONUP                    equ     0205h
  3188. WM_RBUTTONDBLCLK                equ     0206h
  3189. WM_MBUTTONDOWN                  equ     0207h
  3190. WM_MBUTTONUP                    equ     0208h
  3191. WM_MBUTTONDBLCLK                equ     0209h
  3192. WM_MOUSELAST                    equ     0209h
  3193. ;
  3194. WM_PARENTNOTIFY                 equ     0210h
  3195. WM_ENTERMENULOOP                equ     0211h
  3196. WM_EXITMENULOOP                 equ     0212h
  3197. WM_NEXTMENU                     equ     0213h
  3198. WM_SIZING                       equ     0214h
  3199. WM_CAPTURECHANGED               equ     0215h
  3200. WM_MOVING                       equ     0216h
  3201. WM_POWERBROADCAST               equ     0218h
  3202. WM_DEVICECHANGE                 equ     0219h
  3203. WM_MDICREATE                    equ     0220h
  3204. WM_MDIDESTROY                   equ     0221h
  3205. WM_MDIACTIVATE                  equ     0222h
  3206. WM_MDIRESTORE                   equ     0223h
  3207. WM_MDINEXT                      equ     0224h
  3208. WM_MDIMAXIMIZE                  equ     0225h
  3209. WM_MDITILE                      equ     0226h
  3210. WM_MDICASCADE                   equ     0227h
  3211. WM_MDIICONARRANGE               equ     0228h
  3212. WM_MDIGETACTIVE                 equ     0229h
  3213. WM_MDISETMENU                   equ     0230h
  3214. WM_ENTERSIZEMOVE                equ     0231h
  3215. WM_EXITSIZEMOVE                 equ     0232h
  3216. WM_DROPFILES                    equ     0233h
  3217. WM_MDIREFRESHMENU               equ     0234h
  3218. ;
  3219. WM_IME_SETCONTEXT               equ     0281h
  3220. WM_IME_NOTIFY                   equ     0282h
  3221. WM_IME_CONTROL                  equ     0283h
  3222. WM_IME_COMPOSITIONFULL          equ     0284h
  3223. WM_IME_SELECT                   equ     0285h
  3224. WM_IME_CHAR                     equ     0286h
  3225. WM_IME_KEYDOWN                  equ     0290h
  3226. WM_IME_KEYUP                    equ     0291h
  3227. ;
  3228. WM_CUT                          equ     0300h
  3229. WM_COPY                         equ     0301h
  3230. WM_PASTE                        equ     0302h
  3231. WM_CLEAR                        equ     0303h
  3232. WM_UNDO                         equ     0304h
  3233. WM_RENDERFORMAT                 equ     0305h
  3234. WM_RENDERALLFORMATS             equ     0306h
  3235. WM_DESTROYCLIPBOARD             equ     0307h
  3236. WM_DRAWCLIPBOARD                equ     0308h
  3237. WM_PAINTCLIPBOARD               equ     0309h
  3238. WM_VSCROLLCLIPBOARD             equ     030Ah
  3239. WM_SIZECLIPBOARD                equ     030Bh
  3240. WM_ASKCBFORMATNAME              equ     030Ch
  3241. WM_CHANGECBCHAIN                equ     030Dh
  3242. WM_HSCROLLCLIPBOARD             equ     030Eh
  3243. WM_QUERYNEWPALETTE              equ     030Fh
  3244. WM_PALETTEISCHANGING            equ     0310h
  3245. WM_PALETTECHANGED               equ     0311h
  3246. WM_HOTKEY                       equ     0312h
  3247. WM_PRINT                        equ     0317h
  3248. WM_PRINTCLIENT                  equ     0318h
  3249. ;
  3250. WM_HANDHELDFIRST                equ     0358h
  3251. WM_HANDHELDLAST                 equ     035Fh
  3252. ;
  3253. WM_AFXFIRST                     equ     0360h
  3254. WM_AFXLAST                      equ     037Fh
  3255. ;
  3256. WM_PENWINFIRST                  equ     0380h
  3257. WM_PENWINLAST                   equ     038Fh
  3258. ;
  3259. WM_DDE_FIRST                    equ     03E0h
  3260. WM_DDE_INITIATE                 equ     WM_DDE_FIRST
  3261. WM_DDE_TERMINATE                equ     WM_DDE_FIRST+1
  3262. WM_DDE_ADVISE                   equ     WM_DDE_FIRST+2
  3263. WM_DDE_UNADVISE                 equ     WM_DDE_FIRST+3
  3264. WM_DDE_ACK                      equ     WM_DDE_FIRST+4
  3265. WM_DDE_DATA                     equ     WM_DDE_FIRST+5
  3266. WM_DDE_REQUEST                  equ     WM_DDE_FIRST+6
  3267. WM_DDE_POKE                     equ     WM_DDE_FIRST+7
  3268. WM_DDE_EXECUTE                  equ     WM_DDE_FIRST+8
  3269. WM_DDE_LAST                     equ     03E8h
  3270. ;
  3271. WM_USER                         equ     0400h
  3272. WM_APP                          equ     8000h
  3273. ;
  3274. ;------------------------------------------------------------------------------
  3275. ;
  3276. ; ====================
  3277. ; WNet*() status codes
  3278. ; ====================
  3279. ;
  3280. WN_SUCCESS                      equ     NO_ERROR
  3281. WN_NO_ERROR                     equ     NO_ERROR
  3282. ;
  3283. WN_NOT_SUPPORTED                equ     ERROR_NOT_SUPPORTED
  3284. WN_CANCEL                       equ     ERROR_CANCELLED
  3285. WN_RETRY                        equ     ERROR_RETRY
  3286. WN_NET_ERROR                    equ     ERROR_UNEXP_NET_ERR
  3287. WN_MORE_DATA                    equ     ERROR_MORE_DATA
  3288. WN_BAD_POINTER                  equ     ERROR_INVALID_ADDRESS
  3289. WN_BAD_VALUE                    equ     ERROR_INVALID_PARAMETER
  3290. WN_BAD_USER                     equ     ERROR_BAD_USERNAME
  3291. WN_BAD_PASSWORD                 equ     ERROR_INVALID_PASSWORD
  3292. WN_ACCESS_DENIED                equ     ERROR_ACCESS_DENIED
  3293. WN_FUNCTION_BUSY                equ     ERROR_BUSY
  3294. WN_WINDOWS_ERROR                equ     ERROR_UNEXP_NET_ERR
  3295. WN_OUT_OF_MEMORY                equ     ERROR_NOT_ENOUGH_MEMORY
  3296. WN_NO_NETWORK                   equ     ERROR_NO_NETWORK
  3297. WN_EXTENDED_ERROR               equ     ERROR_EXTENDED_ERROR
  3298. WN_BAD_LEVEL                    equ     ERROR_INVALID_LEVEL
  3299. WN_BAD_HANDLE                   equ     ERROR_INVALID_HANDLE
  3300. WN_NOT_INITIALIZING             equ     ERROR_ALREADY_INITIALIZED
  3301. WN_NO_MORE_DEVICES              equ     ERROR_NO_MORE_DEVICES
  3302. ;
  3303. WN_NOT_CONNECTED                equ     ERROR_NOT_CONNECTED
  3304. WN_OPEN_FILES                   equ     ERROR_OPEN_FILES
  3305. WN_DEVICE_IN_USE                equ     ERROR_DEVICE_IN_USE
  3306. WN_BAD_NETNAME                  equ     ERROR_BAD_NET_NAME
  3307. WN_BAD_LOCALNAME                equ     ERROR_BAD_DEVICE
  3308. WN_ALREADY_CONNECTED            equ     ERROR_ALREADY_ASSIGNED
  3309. WN_DEVICE_ERROR                 equ     ERROR_GEN_FAILURE
  3310. WN_CONNECTION_CLOSED            equ     ERROR_CONNECTION_UNAVAIL
  3311. WN_NO_NET_OR_BAD_PATH           equ     ERROR_NO_NET_OR_BAD_PATH
  3312. WN_BAD_PROVIDER                 equ     ERROR_BAD_PROVIDER
  3313. WN_CANNOT_OPEN_PROFILE          equ     ERROR_CANNOT_OPEN_PROFILE
  3314. WN_BAD_PROFILE                  equ     ERROR_BAD_PROFILE
  3315. WN_BAD_DEV_TYPE                 equ     ERROR_BAD_DEV_TYPE
  3316. WN_DEVICE_ALREADY_REMEMBERED    equ     ERROR_DEVICE_ALREADY_REMEMBERED
  3317. ;
  3318. WN_NO_MORE_ENTRIES              equ     ERROR_NO_MORE_ITEMS
  3319. WN_NOT_CONTAINER                equ     ERROR_NOT_CONTAINER
  3320. ;
  3321. WN_NOT_AUTHENTICATED            equ     ERROR_NOT_AUTHENTICATED
  3322. WN_NOT_LOGGED_ON                equ     ERROR_NOT_LOGGED_ON
  3323. WN_NOT_VALIDATED                equ     ERROR_NO_LOGON_SERVERS
  3324. ;
  3325. ;------------------------------------------------------------------------------
  3326. ;
  3327. ; =============
  3328. ; network types
  3329. ; =============
  3330. ;
  3331. WNNC_NET_MSNET                  equ     00010000h
  3332. WNNC_NET_LANMAN                 equ     00020000h
  3333. WNNC_NET_NETWARE                equ     00030000h
  3334. WNNC_NET_VINES                  equ     00040000h
  3335. WNNC_NET_10NET                  equ     00050000h
  3336. WNNC_NET_LOCUS                  equ     00060000h
  3337. WNNC_NET_SUN_PC_NFS             equ     00070000h
  3338. WNNC_NET_LANSTEP                equ     00080000h
  3339. WNNC_NET_9TILES                 equ     00090000h
  3340. WNNC_NET_LANTASTIC              equ     000A0000h
  3341. WNNC_NET_AS400                  equ     000B0000h
  3342. WNNC_NET_FTP_NFS                equ     000C0000h
  3343. WNNC_NET_PATHWORKS              equ     000D0000h
  3344. WNNC_NET_LIFENET                equ     000E0000h
  3345. WNNC_NET_POWERLAN               equ     000F0000h
  3346. WNNC_NET_BWNFS                  equ     00100000h
  3347. WNNC_NET_COGENT                 equ     00110000h
  3348. WNNC_NET_FARALLON               equ     00120000h
  3349. WNNC_NET_APPLETALK              equ     00130000h
  3350. ;
  3351. ;------------------------------------------------------------------------------
  3352. ;
  3353. ; =============
  3354. ; window styles
  3355. ; =============
  3356. ;
  3357. WS_OVERLAPPED                   equ     00000000h
  3358. WS_TABSTOP                      equ     00010000h
  3359. WS_GROUP                        equ     00020000h
  3360. WS_MAXIMIZEBOX                  equ     00010000h
  3361. WS_MINIMIZEBOX                  equ     00020000h
  3362. WS_THICKFRAME                   equ     00040000h
  3363. WS_SYSMENU                      equ     00080000h
  3364. WS_HSCROLL                      equ     00100000h
  3365. WS_VSCROLL                      equ     00200000h
  3366. WS_DLGFRAME                     equ     00400000h
  3367. WS_BORDER                       equ     00800000h
  3368. WS_MAXIMIZE                     equ     01000000h
  3369. WS_CLIPCHILDREN                 equ     02000000h
  3370. WS_CLIPSIBLINGS                 equ     04000000h
  3371. WS_DISABLED                     equ     08000000h
  3372. WS_VISIBLE                      equ     10000000h
  3373. WS_MINIMIZE                     equ     20000000h
  3374. WS_CHILD                        equ     40000000h
  3375. WS_POPUP                        equ     80000000h
  3376. ;
  3377. WS_CAPTION                      equ     WS_BORDER+WS_DLGFRAME
  3378. WS_POPUPWINDOW                  equ     WS_POPUP+WS_BORDER+WS_SYSMENU
  3379. WS_MODAL                        equ     WS_CAPTION+WS_SYSMENU+WS_VISIBLE
  3380. WS_MODELESS                     equ     WS_CAPTION+WS_SYSMENU+WS_VISIBLE
  3381. WS_CONTROL                      equ     WS_CHILD+WS_VISIBLE
  3382. WS_OVERLAPPEDWINDOW             equ     WS_OVERLAPPED+WS_CAPTION+WS_SYSMENU+\
  3383.                                         WS_THICKFRAME+WS_MINIMIZEBOX+\
  3384.                                         WS_MAXIMIZEBOX
  3385. ;
  3386. WS_TILED                        equ     WS_OVERLAPPED
  3387. WS_CHILDWINDOW                  equ     WS_CHILD
  3388. WS_ICONIC                       equ     WS_MINIMIZE
  3389. WS_SIZEBOX                      equ     WS_THICKFRAME
  3390. WS_TILEDWINDOW                  equ     WS_OVERLAPPEDWINDOW
  3391. ;
  3392. ;------------------------------------------------------------------------------
  3393. ;
  3394. ; ======================
  3395. ; extended window styles
  3396. ; ======================
  3397. ;
  3398. WS_EX_NONE                      equ     00000000h
  3399. WS_EX_DLGMODALFRAME             equ     00000001h
  3400. WS_EX_NOPARENTNOTIFY            equ     00000004h
  3401. WS_EX_TOPMOST                   equ     00000008h
  3402. WS_EX_ACCEPTFILES               equ     00000010h
  3403. WS_EX_TRANSPARENT               equ     00000020h
  3404. WS_EX_MDICHILD                  equ     00000040h
  3405. WS_EX_TOOLWINDOW                equ     00000080h
  3406. WS_EX_WINDOWEDGE                equ     00000100h
  3407. WS_EX_CLIENTEDGE                equ     00000200h
  3408. WS_EX_CONTEXTHELP               equ     00000400h
  3409. WS_EX_RIGHT                     equ     00001000h
  3410. WS_EX_LEFT                      equ     00000000h
  3411. WS_EX_RTLREADING                equ     00002000h
  3412. WS_EX_LTRREADING                equ     00000000h
  3413. WS_EX_LEFTSCROLLBAR             equ     00004000h
  3414. WS_EX_RIGHTSCROLLBAR            equ     00000000h
  3415. WS_EX_CONTROLPARENT             equ     00010000h
  3416. WS_EX_STATICEDGE                equ     00020000h
  3417. WS_EX_APPWINDOW                 equ     00040000h
  3418. ;
  3419. WS_EX_OVERLAPPEDWINDOW          equ     00000300h
  3420. WS_EX_PALETTEWINDOW             equ     00000188h
  3421. ;
  3422. ;------------------------------------------------------------------------------
  3423. ;
  3424. ; ================
  3425. ; background modes
  3426. ; ================
  3427. ;
  3428. TRANSPARENT                     equ     1
  3429. OPAQUE                          equ     2
  3430. BKMODE_LAST                     equ     2
  3431. ;
  3432. ;------------------------------------------------------------------------------
  3433. ;
  3434. ; ====================
  3435. ; CreateFile() actions
  3436. ; ====================
  3437. ;
  3438. CREATE_NEW                      equ     1
  3439. CREATE_ALWAYS                   equ     2
  3440. OPEN_EXISTING                   equ     3
  3441. OPEN_ALWAYS                     equ     4
  3442. TRUNCATE_EXISTING               equ     5
  3443. ;
  3444. ;------------------------------------------------------------------------------
  3445. ;
  3446. ; =====================
  3447. ; CreateProcess() flags
  3448. ; =====================
  3449. ;
  3450. DEBUG_PROCESS                   equ     00000001h
  3451. DEBUG_ONLY_THIS_PROCESS         equ     00000002h
  3452. CREATE_SUSPENDED                equ     00000004h
  3453. DETACHED_PROCESS                equ     00000008h
  3454. CREATE_NEW_CONSOLE              equ     00000010h
  3455. NORMAL_PRIORITY_CLASS           equ     00000020h
  3456. IDLE_PRIORITY_CLASS             equ     00000040h
  3457. HIGH_PRIORITY_CLASS             equ     00000080h
  3458. REALTIME_PRIORITY_CLASS         equ     00000100h
  3459. ;
  3460. CREATE_NEW_PROCESS_GROUP        equ     00000200h
  3461. CREATE_UNICODE_ENVIRONMENT      equ     00000400h
  3462. CREATE_SEPARATE_WOW_VDM         equ     00000800h
  3463. CREATE_SHARED_WOW_VDM           equ     00001000h
  3464. CREATE_DEFAULT_ERROR_MODE       equ     04000000h
  3465. CREATE_NO_WINDOW                equ     08000000h
  3466. ;
  3467. PROFILE_USER                    equ     10000000h
  3468. PROFILE_KERNEL                  equ     20000000h
  3469. PROFILE_SERVER                  equ     40000000h
  3470. ;
  3471. ;------------------------------------------------------------------------------
  3472. ;
  3473. ; ===============
  3474. ; gdi error codes
  3475. ; ===============
  3476. ;
  3477. GDI_ERROR                       equ     -1
  3478. HGDI_ERROR                      equ     -1
  3479. ;
  3480. ;------------------------------------------------------------------------------
  3481. ;
  3482. ; =================
  3483. ; memory attributes
  3484. ; =================
  3485. ;
  3486. PAGE_NOACCESS                   equ     00000001h
  3487. PAGE_READONLY                   equ     00000002h
  3488. PAGE_READWRITE                  equ     00000004h
  3489. PAGE_WRITECOPY                  equ     00000008h
  3490. PAGE_EXECUTE                    equ     00000010h
  3491. PAGE_EXECUTE_READ               equ     00000020h
  3492. PAGE_EXECUTE_READWRITE          equ     00000040h
  3493. PAGE_EXECUTE_WRITECOPY          equ     00000080h
  3494. PAGE_GUARD                      equ     00000100h
  3495. PAGE_NOCACHE                    equ     00000200h
  3496. ;
  3497. MEM_COMMIT                      equ     00001000h
  3498. MEM_RESERVE                     equ     00002000h
  3499. MEM_DECOMMIT                    equ     00004000h
  3500. MEM_RELEASE                     equ     00008000h
  3501. MEM_FREE                        equ     00010000h
  3502. MEM_PRIVATE                     equ     00020000h
  3503. MEM_MAPPED                      equ     00040000h
  3504. MEM_TOP_DOWN                    equ     00100000h
  3505. ;
  3506. SEC_FILE                        equ     00800000h
  3507. SEC_IMAGE                       equ     01000000h
  3508. SEC_RESERVE                     equ     04000000h
  3509. SEC_COMMIT                      equ     08000000h
  3510. SEC_NOCACHE                     equ     10000000h
  3511. ;
  3512. MEM_IMAGE                       equ     SEC_IMAGE
  3513. ;
  3514. SECTION_QUERY                   equ     00000001h
  3515. SECTION_MAP_WRITE               equ     00000002h
  3516. SECTION_MAP_READ                equ     00000004h
  3517. SECTION_MAP_EXECUTE             equ     00000008h
  3518. SECTION_EXTEND_SIZE             equ     00000010h
  3519. ;
  3520. SECTION_ALL_ACCESS              equ     STANDARD_RIGHTS_REQUIRED+\
  3521.                                         SECTION_QUERY+\
  3522.                                         SECTION_MAP_WRITE+\
  3523.                                         SECTION_MAP_READ+\
  3524.                                         SECTION_MAP_EXECUTE+\
  3525.                                         SECTION_EXTEND_SIZE
  3526. ;
  3527. FILE_MAP_COPY                   equ     SECTION_QUERY
  3528. FILE_MAP_WRITE                  equ     SECTION_MAP_WRITE
  3529. FILE_MAP_READ                   equ     SECTION_MAP_READ
  3530. FILE_MAP_ALL_ACCESS             equ     SECTION_ALL_ACCESS
  3531. ;
  3532. ;------------------------------------------------------------------------------
  3533. ;
  3534. ; ================
  3535. ; PolyFill() modes
  3536. ; ================
  3537. ;
  3538. ALTERNATE                       equ     1
  3539. WINDING                         equ     2
  3540. POLYFILL_LAST                   equ     2
  3541. ;
  3542. ;------------------------------------------------------------------------------
  3543. ;
  3544. ; ============
  3545. ; region flags
  3546. ; ============
  3547. ;
  3548. ERROR                           equ     0
  3549. NULLREGION                      equ     1
  3550. SIMPLEREGION                    equ     2
  3551. COMPLEXREGION                   equ     3
  3552. RGN_ERROR                       equ     ERROR
  3553. ;
  3554. ;------------------------------------------------------------------------------
  3555. ;
  3556. ; =====================
  3557. ; standard access types
  3558. ; =====================
  3559. ;
  3560. DELETE                          equ     00010000h
  3561. READ_CONTROL                    equ     00020000h
  3562. WRITE_DAC                       equ     00040000h
  3563. WRITE_OWNER                     equ     00080000h
  3564. SYNCHRONIZE                     equ     00100000h
  3565. ;
  3566. SPECIFIC_RIGHTS_ALL             equ     0000FFFFh
  3567. STANDARD_RIGHTS_REQUIRED        equ     000F0000h
  3568. STANDARD_RIGHTS_ALL             equ     001F0000h
  3569. ;
  3570. STANDARD_RIGHTS_READ            equ     READ_CONTROL
  3571. STANDARD_RIGHTS_WRITE           equ     READ_CONTROL
  3572. STANDARD_RIGHTS_EXECUTE         equ     READ_CONTROL
  3573. ;
  3574. ;------------------------------------------------------------------------------
  3575. ;
  3576. ; =====================
  3577. ; stock logical objects
  3578. ; =====================
  3579. ;
  3580. WHITE_BRUSH                     equ      0
  3581. LTGRAY_BRUSH                    equ      1
  3582. GRAY_BRUSH                      equ      2
  3583. DKGRAY_BRUSH                    equ      3
  3584. BLACK_BRUSH                     equ      4
  3585. NULL_BRUSH                      equ      5
  3586. WHITE_PEN                       equ      6
  3587. BLACK_PEN                       equ      7
  3588. NULL_PEN                        equ      8
  3589. OEM_FIXED_FONT                  equ     10
  3590. ANSI_FIXED_FONT                 equ     11
  3591. ANSI_VAR_FONT                   equ     12
  3592. SYSTEM_FONT                     equ     13
  3593. DEVICE_DEFAULT_FONT             equ     14
  3594. DEFAULT_PALETTE                 equ     15
  3595. SYSTEM_FIXED_FONT               equ     16
  3596. DEFAULT_GUI_FONT                equ     17
  3597. ;
  3598. HOLLOW_BRUSH                    equ     NULL_BRUSH
  3599. ;
  3600. ;------------------------------------------------------------------------------
  3601. ;
  3602. ; ==================
  3603. ; StretchBlt() modes
  3604. ; ==================
  3605. ;
  3606. BLACKONWHITE                    equ     1
  3607. WHITEONBLACK                    equ     2
  3608. COLORONCOLOR                    equ     3
  3609. HALFTONE                        equ     4
  3610. MAXSTRETCHBLTMODE               equ     4
  3611. ;
  3612. STRETCH_ANDSCANS                equ     BLACKONWHITE
  3613. STRETCH_ORSCANS                 equ     WHITEONBLACK
  3614. STRETCH_DELETESCANS             equ     COLORONCOLOR
  3615. STRETCH_HALFTONE                equ     HALFTONE
  3616. ;
  3617. ;------------------------------------------------------------------------------
  3618. ;
  3619. ; =========================
  3620. ; ternary raster operations
  3621. ; =========================
  3622. ;
  3623. SRCCOPY                         equ     00CC0020h       ;dest = src
  3624. SRCPAINT                        equ     00EE0086h       ;dest = src or dest
  3625. SRCAND                          equ     008800C6h       ;dest = src and dest
  3626. SRCINVERT                       equ     00660046h       ;dest = src xor dest
  3627. SRCERASE                        equ     00440328h       ;dest = src and -dest
  3628. NOTSRCCOPY                      equ     00330008h       ;dest = -src
  3629. NOTSRCERASE                     equ     001100A6h       ;dest = -src and -dest
  3630. MERGECOPY                       equ     00C000CAh       ;dest = src and pat
  3631. MERGEPAINT                      equ     00BB0226h       ;dest = -src or dest
  3632. PATCOPY                         equ     00F00021h       ;dest = pat
  3633. PATPAINT                        equ     00FB0A09h       ;dest = DPSnoo
  3634. PATINVERT                       equ     005A0049h       ;dest = pat xor dest
  3635. DSTINVERT                       equ     00550009h       ;dest = -dest
  3636. BLACKNESS                       equ     00000042h       ;dest = black
  3637. WHITENESS                       equ     00FF0062h       ;dest = white
  3638. ;
  3639. ;;==============================================================================
  3640. ;
  3641. ;       STRUCTURES
  3642. ;
  3643. ;==============================================================================
  3644. ;
  3645. STARTUPINFOA            STRUCT
  3646.         cb              DWORD           ?
  3647.         lpReserved      LPSTR           ?
  3648.         lpDesktop       LPSTR           ?
  3649.         lpTitle         LPSTR           ?
  3650.         dwX             DWORD           ?
  3651.         dwY             DWORD           ?
  3652.         dwXSize         DWORD           ?
  3653.         dwYSize         DWORD           ?
  3654.         dwXCountChars   DWORD           ?
  3655.         dwYCountChars   DWORD           ?
  3656.         dwFillAttribute DWORD           ?
  3657.         dwFlags         DWORD           ?
  3658.         wShowWindow     WORD            ?
  3659.         cbReserved2     WORD            ?
  3660.         lpReserved2     LPBYTE          ?
  3661.         hStdInput       HANDLE          ?
  3662.         hStdOutput      HANDLE          ?
  3663.         hStdError       HANDLE          ?
  3664. STARTUPINFOA            ENDS
  3665.  
  3666.  
  3667.  
  3668.  
  3669. ;
  3670. BITMAPFILEHEADER        struct
  3671. bf_bfType               WORD      0             ;file type
  3672. bf_bfSize               DWORD     0             ;file size
  3673. bf_bfReserved1          WORD      0             ;(reserved)
  3674. bf_bfReserved2          WORD      0             ;(reserved)
  3675. bf_bfOffBits            DWORD     0             ;data offset
  3676. BITMAPFILEHEADER        ends
  3677. BITMAPFILEHEADER_       equ       2+4+2+2+4
  3678. ;
  3679. ;------------------------------------------------------------------------------
  3680. ;
  3681. BITMAPINFOHEADER        struct
  3682. bi_biSize               DWORD     0             ;structure size
  3683. bi_biWidth              LONG      0             ;bitmap width
  3684. bi_biHeight             LONG      0             ;bitmap height
  3685. bi_biPlanes             WORD      0             ;number of color planes
  3686. bi_biBitCount           WORD      0             ;number of bits per pixel
  3687. bi_biCompression        DWORD     0             ;compression type
  3688. bi_biSizeImage          DWORD     0             ;number of data bytes
  3689. bi_biXPelsPerMeter      LONG      0             ;horizontal resolution
  3690. bi_biYPelsPerMeter      LONG      0             ;vertical resolution
  3691. bi_biClrUsed            DWORD     0             ;number of used colors
  3692. bi_biClrImportant       DWORD     0             ;number of important colors
  3693. BITMAPINFOHEADER        ends
  3694. BITMAPINFOHEADER_       equ       4+4+4+2+2+4+4+4+4+4+4
  3695. ;
  3696. ;------------------------------------------------------------------------------
  3697. ;
  3698. BITMAP                  struct
  3699. bm_bmType               LONG      0             ;bitmap type
  3700. bm_bmWidth              LONG      0             ;bitmap width
  3701. bm_bmHeight             LONG      0             ;bitmap height
  3702. bm_bmWidthBytes         LONG      0             ;bytes per scan line
  3703. bm_bmPlanes             WORD      0             ;number of color planes
  3704. bm_bmBitsPixel          WORD      0             ;number of bits per pixel
  3705. bm_bmBits               LPVOID    0             ;data pointer
  3706. BITMAP                  ends
  3707. BITMAP_                 equ       4+4+4+4+2+2+4
  3708. ;
  3709. ;------------------------------------------------------------------------------
  3710. ;
  3711. COPYDATASTRUCT          struct
  3712. cd_dwData               DWORD     0             ;32-bit data
  3713. cd_cbData               DWORD     0             ;number of data bytes
  3714. cd_lpData               PVOID     0             ;data bytes
  3715. COPYDATASTRUCT          ends
  3716. COPYDATASTRUCT_         equ       4+4+4
  3717. ;
  3718. ;------------------------------------------------------------------------------
  3719. ;
  3720. CONTEXT                 struct
  3721. ;
  3722. cx_ContextFlags         DWORD     0             ;context flags
  3723. ;
  3724. ; CONTEXT_DEBUG_REGISTERS
  3725. ;
  3726. cx_Dr0                  DWORD     0             ;debug register #0
  3727. cx_Dr1                  DWORD     0             ;debug register #1
  3728. cx_Dr2                  DWORD     0             ;debug register #2
  3729. cx_Dr3                  DWORD     0             ;debug register #3
  3730. cx_Dr6                  DWORD     0             ;debug register #6
  3731. cx_Dr7                  DWORD     0             ;debug register #7
  3732. ;
  3733. ; CONTEXT_FLOATING_POINT
  3734. ;
  3735. cx_ControlWord          DWORD     0             ;fpu context
  3736. cx_StatusWord           DWORD     0
  3737. cx_TagWord              DWORD     0
  3738. cx_ErrorOffset          DWORD     0
  3739. cx_ErrorSelector        DWORD     0
  3740. cx_DataOffset           DWORD     0
  3741. cx_DataSelector         DWORD     0
  3742. cx_RegisterArea         BYTE      SIZE_OF_80387_REGISTERS dup (0)
  3743. cx_Cr0NpxState          DWORD     0
  3744. ;
  3745. ; CONTEXT_SEGMENTS
  3746. ;
  3747. cx_SegGs                DWORD     0             ;gs register
  3748. cx_SegFs                DWORD     0             ;fs register
  3749. cx_SegEs                DWORD     0             ;es register
  3750. cx_SegDs                DWORD     0             ;ds register
  3751. ;
  3752. ; CONTEXT_INTEGER
  3753. ;
  3754. cx_Edi                  DWORD     0             ;edi register
  3755. cx_Esi                  DWORD     0             ;esi register
  3756. cx_Ebx                  DWORD     0             ;ebx register
  3757. cx_Edx                  DWORD     0             ;edx register
  3758. cx_Ecx                  DWORD     0             ;ecx register
  3759. cx_Eax                  DWORD     0             ;eax register
  3760. ;
  3761. ; CONTEXT_CONTROL
  3762. ;
  3763. cx_Ebp                  DWORD     0             ;ebp register
  3764. cx_Eip                  DWORD     0             ;eip register
  3765. cx_SegCs                DWORD     0             ;cs register
  3766. cx_EFlags               DWORD     0             ;eflags register
  3767. cx_Esp                  DWORD     0             ;esp register
  3768. cx_SegSs                DWORD     0             ;ss register
  3769. ;
  3770. CONTEXT                 ends
  3771. ;
  3772. CONTEXT_FLAGS_                  equ     4
  3773. CONTEXT_DEBUG_REGISTERS_        equ     4+4+4+4+4+4
  3774. CONTEXT_FLOATING_POINT_         equ     4+4+4+4+4+4+4+SIZE_OF_80387_REGISTERS+4
  3775. CONTEXT_SEGMENTS_               equ     4+4+4+4
  3776. CONTEXT_INTEGER_                equ     4+4+4+4+4+4
  3777. CONTEXT_CONTROL_                equ     4+4+4+4+4+4
  3778. ;
  3779. CONTEXT_FULL_                   equ     CONTEXT_FLAGS_+\
  3780.                                         CONTEXT_SEGMENTS_+\
  3781.                                         CONTEXT_INTEGER_+\
  3782.                                         CONTEXT_CONTROL_
  3783. ;
  3784. ;------------------------------------------------------------------------------
  3785. ;
  3786. DIALOGATTRIBUTES        struct
  3787. da_Palette              DWORD     0             ;palette pointer
  3788. da_TextBox              DWORD     0             ;text box list pointer
  3789. DIALOGATTRIBUTES        ends
  3790. DIALOGATTRIBUTES_       equ       4+4
  3791. ;
  3792. ;------------------------------------------------------------------------------
  3793. ;
  3794. DIALOGPALETTE           struct
  3795. dp_DlgText              COLORREF  0             ;dialog text color
  3796. dp_DlgBk                COLORREF  0             ;dialog background color
  3797. dp_StaticText           COLORREF  0             ;static text color
  3798. dp_StaticBk             COLORREF  0             ;static background color
  3799. dp_TextBoxText          COLORREF  0             ;text box text color
  3800. dp_TextBoxBk            COLORREF  0             ;text box background color
  3801. dp_EditText             COLORREF  0             ;edit text color
  3802. dp_EditBk               COLORREF  0             ;edit background color
  3803. dp_ListBoxText          COLORREF  0             ;list box text color
  3804. dp_ListBoxBk            COLORREF  0             ;list box background color
  3805. DIALOGPALETTE           ends
  3806. DIALOGPALETTE_          equ       4+4+4+4+4+4+4+4+4+4
  3807. ;
  3808. ;------------------------------------------------------------------------------
  3809. ;
  3810. DIALOGRECORD            struct
  3811. dr_hWnd                 HWND      0             ;dialog window handle
  3812. dr_fModeless            BOOL      FALSE         ;mode flag
  3813. dr_Attributes           DWORD     0             ;dialog window attributes list
  3814. dr_Data                 DWORD     0             ;dialog data
  3815. dr_hDlgBrush            HBRUSH    0             ;dialog brush handle
  3816. dr_hStaticBrush         HBRUSH    0             ;static brush handle
  3817. dr_hTextBoxBrush        HBRUSH    0             ;text box brush handle
  3818. dr_hEditBrush           HBRUSH    0             ;edit brush handle
  3819. dr_hListBoxBrush        HBRUSH    0             ;list box brush handle
  3820. DIALOGRECORD            ends
  3821. DIALOGRECORD_           equ       4+4+4+4+4+4+4+4+4
  3822. ;
  3823. ;------------------------------------------------------------------------------
  3824. ;
  3825. WIN32_FIND_DATA_        equ       4+8+8+8+4+4+4+4+(MAX_PATH*CHAR_)+(14*CHAR_)
  3826. WIN32_FIND_DATA         struct
  3827. fd_dwFileAttributes     DWORD     0             ;file attributes
  3828. fd_ftCreationTime       DWORD     0, 0          ;time of file creation
  3829. fd_ftLastAccessTime     DWORD     0, 0          ;time of last file access
  3830. fd_ftLastWriteTime      DWORD     0, 0          ;time of last write access
  3831. fd_nFileSizeHigh        DWORD     0             ;high-order word of file size
  3832. fd_nFileSizeLow         DWORD     0             ;low-order word of file size
  3833. fd_dwReserved0          DWORD     0             ;(reserved)
  3834. fd_dwReserved1          DWORD     0             ;(reserved)
  3835. fd_cFileName            CHAR      MAX_PATH dup(0) ;matching file name
  3836. fd_cAlternateFileName   CHAR      14 dup(0)     ;8.3 alias name
  3837. WIN32_FIND_DATA         ends
  3838. ;
  3839. ;------------------------------------------------------------------------------
  3840. ;
  3841. BY_HANDLE_FILE_INFORMATION struct
  3842. fi_dwFileAttributes     DWORD     0             ;file attributes
  3843. fi_ftCreationTime       DWORD     0, 0          ;time of file creation
  3844. fi_ftLastAccessTime     DWORD     0, 0          ;time of last file access
  3845. fi_ftLastWriteTime      DWORD     0, 0          ;time of last write access
  3846. fi_dwVolumeSerialNumber DWORD     0             ;volume serial number
  3847. fi_nFileSizeHigh        DWORD     0             ;high-order word of file size
  3848. fi_nFileSizeLow         DWORD     0             ;low-order word of file size
  3849. fi_nNumberOfLinks       DWORD     0             ;number of links to the file
  3850. fi_nFileIndexHigh       DWORD     0             ;high-order word of identifier
  3851. fi_nFileIndexLow        DWORD     0             ;low-order word of identifier
  3852. BY_HANDLE_FILE_INFORMATION  ends
  3853. BY_HANDLE_FILE_INFORMATION_ equ   4+8+8+8+4+4+4+4+4+4
  3854. ;
  3855. ;------------------------------------------------------------------------------
  3856. ;
  3857. FILETIME                struct
  3858. ft_dwLowDateTime        DWORD     0             ;low-order 32 bits
  3859. ft_dwHighDateTime       DWORD     0             ;high-order 32 bits
  3860. FILETIME                ends
  3861. FILETIME_               equ       4+4
  3862. ;
  3863. ;------------------------------------------------------------------------------
  3864. ;
  3865. MSG                     struct
  3866. ms_hwnd                 HWND      0             ;window handle
  3867. ms_message              UINT      0             ;message id
  3868. ms_wParam               WPARAM    0             ;additional parameter
  3869. ms_lParam               LPARAM    0             ;additional parameter
  3870. ms_time                 DWORD     0             ;time stamp
  3871. ms_x                    LONGINT   0             ;x coordinate
  3872. ms_y                    LONGINT   0             ;y coordinate
  3873. MSG                     ends
  3874. MSG_                    equ       4+4+4+4+4+4+4
  3875. ;
  3876. ;------------------------------------------------------------------------------
  3877. ;
  3878. NETRESOURCE             struct
  3879. nr_dwScope              DWORD     0             ;resource scope
  3880. nr_dwType               DWORD     0             ;resource type
  3881. nr_dwDisplayType        DWORD     0             ;display type
  3882. nr_dwUsage              DWORD     0             ;resource usage
  3883. nr_lpLocalName          LPSTR     0             ;redirected local device
  3884. nr_lpRemoteName         LPSTR     0             ;remote name
  3885. nr_lpComment            LPSTR     0             ;provider supplied comment
  3886. nr_lpProvider           LPSTR     0             ;name of provider
  3887. NETRESOURCE             ends
  3888. NETRESOURCE_            equ       4+4+4+4+4+4+4+4
  3889. ;
  3890. ;------------------------------------------------------------------------------
  3891. ;
  3892. OFSTRUCT_               equ       1+1+2+2+2+OFS_MAXPATHNAME
  3893. OFSTRUCT                struct
  3894. of_cBytes               BYTE      0             ;structure size
  3895. of_fFixedDisk           BYTE      0             ;fixed-disk flag
  3896. of_nErrCode             WORD      0             ;error code
  3897. of_Reserved1            WORD      0             ;(reserved)
  3898. of_Reserved2            WORD      0             ;(reserved)
  3899. of_szPathName           BYTE      OFS_MAXPATHNAME dup (0) ;path name
  3900. OFSTRUCT                ends
  3901. ;
  3902. ;------------------------------------------------------------------------------
  3903. ;
  3904. OPENFILENAME_           equ       4+4+4+4+4+4+4+4+4+4+4+4+4+4+2+2+4+4+4+4
  3905. OPENFILENAME            struct
  3906. on_lStructSize          DWORD     OPENFILENAME_ ;number of bytes
  3907. on_hwndOwner            HWND      0             ;dialog box owner
  3908. on_hInstance            HINSTANCE 0             ;dialog box template id
  3909. on_lpstrFilter          LPCSTR    0             ;filter strings
  3910. on_lpstrCustomFilter    LPSTR     0             ;user-defined filter stings
  3911. on_nMaxCustFilter       DWORD     0             ;size of custom filter buffer
  3912. on_nFilterIndex         DWORD     0             ;index into the filter buffer
  3913. on_lpstrFile            LPSTR     0             ;default file name buffer
  3914. on_nMaxFile             DWORD     0             ;size of the file name buffer
  3915. on_lpstrFileTitle       LPSTR     0             ;file title buffer
  3916. on_nMaxFileTitle        DWORD     0             ;size of the file title buffer
  3917. on_lpstrInitialDir      LPCSTR    0             ;initial directory
  3918. on_lpstrTitle           LPCSTR    0             ;dialog box title
  3919. on_Flags                DWORD     0             ;dialog box creation flags
  3920. on_nFileOffset          WORD      0             ;file name offset in lpstrFile
  3921. on_nFileExtension       WORD      0             ;file ext offset in lpstrFile
  3922. on_lpstrDefExt          LPCSTR    0             ;default extension
  3923. on_lCustData            LPARAM    0             ;application-defined hook data
  3924. on_lpfnHook             LPFN      0             ;hook function
  3925. on_lpTemplateName       LPCSTR    0             ;dialog box template name
  3926. OPENFILENAME            ends
  3927. ;
  3928. ;------------------------------------------------------------------------------
  3929. ;
  3930. OSVERSIONINFO_          equ     4+4+4+4+4+(128*CHAR_)
  3931. OSVERSIONINFO           struct
  3932. ov_dwOSVersionInfoSize  DWORD   OSVERSIONINFO_  ;structure size
  3933. ov_dwMajorVersion       DWORD   0               ;major version number
  3934. ov_dwMinorVersion       DWORD   0               ;minor version number
  3935. ov_dwBuildNumber        DWORD   0               ;build number
  3936. ov_dwPlatformId         DWORD   0               ;platform id
  3937. ov_szCSDVersion         CHAR    128 dup (0)     ;info string
  3938. OSVERSIONINFO           ends
  3939. ;
  3940. ;------------------------------------------------------------------------------
  3941. ;
  3942. PAINTSTRUCT             struct
  3943. ps_hdc                  HDC       0             ;device context handle
  3944. ps_fErase               BOOL      FALSE         ;background erase flag
  3945. ps_leftPaint            LONGINT   0             ;left margin of clipping rect
  3946. ps_topPaint             LONGINT   0             ;top margin of clipping rect
  3947. ps_rightPaint           LONGINT   0             ;right margin of clipping rect
  3948. ps_bottomPaint          LONGINT   0             ;bottom margin of clipping rect
  3949. ps_fRestore             BOOL      FALSE         ;(reserved)
  3950. ps_fIncUpdate           BOOL      FALSE         ;(reserved)
  3951. ps_rgbReserved          BYTE      32 dup (0)    ;(reserved)
  3952. PAINTSTRUCT             ends
  3953. PAINTSTRUCT_            equ       4+4+4+4+4+4+4+4+32
  3954. ;
  3955. ;------------------------------------------------------------------------------
  3956. ;
  3957. PROCESS_INFORMATION     struct
  3958. pi_hProcess             HANDLE    0             ;process handle
  3959. pi_hThread              HANDLE    0             ;thread handle
  3960. pi_dwProcessId          DWORD     0             ;process id
  3961. pi_dwThreadId           DWORD     0             ;thread id
  3962. PROCESS_INFORMATION     ends
  3963. PROCESS_INFORMATION_    equ       4+4+4+4
  3964. ;
  3965. ;------------------------------------------------------------------------------
  3966. ;
  3967. POINT                   struct
  3968. pt_x                    LONGINT   0             ;x coordinate
  3969. pt_y                    LONGINT   0             ;y coordinate
  3970. POINT                   ends
  3971. POINT_                  equ       4+4
  3972. ;
  3973. ;------------------------------------------------------------------------------
  3974. ;
  3975. RECT                    struct
  3976. rc_left                 LONGINT   0             ;left margin
  3977. rc_top                  LONGINT   0             ;top margin
  3978. rc_right                LONGINT   0             ;right margin
  3979. rc_bottom               LONGINT   0             ;bottom margin
  3980. RECT                    ends
  3981. RECT_                   equ       4+4+4+4
  3982. ;
  3983. ;------------------------------------------------------------------------------
  3984. ;
  3985. RGBQUAD                 struct
  3986. rq_rgbBlue              BYTE      0             ;intensity of blue component
  3987. rq_rgbGreen             BYTE      0             ;intensity of green component
  3988. rq_rgbRed               BYTE      0             ;intensity of red component
  3989. rq_rgbReserved          BYTE      0             ;(reserved)
  3990. RGBQUAD                 ends
  3991. RGBQUAD_                equ       1+1+1+1
  3992. ;
  3993. ;------------------------------------------------------------------------------
  3994. ;
  3995. SECURITY_ATTRIBUTES_    equ       4+4+4
  3996. SECURITY_ATTRIBUTES     struct
  3997. sa_nLength              DWORD     SECURITY_ATTRIBUTES_ ;structure size
  3998. sa_lpSecurityDescriptor LPVOID    0             ;security descriptor
  3999. sa_bInheritHandle       BOOL      FALSE         ;handle inheritance flag
  4000. SECURITY_ATTRIBUTES     ends
  4001. ;
  4002. ;------------------------------------------------------------------------------
  4003. ;
  4004. STARTUPINFO             struct
  4005. si_cb                   DWORD     0             ;structure size
  4006. si_lpReserved           LPSTR     0             ;(reserved)
  4007. si_lpDesktop            LPSTR     0             ;desktop name
  4008. sl_lpTitle              LPSTR     0             ;console window title
  4009. si_dwX                  DWORD     0             ;window origin (column)
  4010. si_dwY                  DWORD     0             ;window origin (row)
  4011. si_dwXSize              DWORD     0             ;window width
  4012. si_dwYSize              DWORD     0             ;window height
  4013. si_dwXCountChars        DWORD     0             ;screen buffer width
  4014. si_dwYCountChars        DWORD     0             ;screen buffer height
  4015. si_dwFillAttribute      DWORD     0             ;console window initialization
  4016. si_dwFlags              DWORD     0             ;structure member flags
  4017. si_wShowWindow          WORD      0             ;ShowWindow() parameter
  4018. si_cbReserved2          WORD      0             ;(reserved)
  4019. si_lpReserved2          LPBYTE    0             ;(reserved)
  4020. si_hStdInput            HANDLE    0             ;standard input handle
  4021. si_hStdOutput           HANDLE    0             ;standard output handle
  4022. si_hStdError            HANDLE    0             ;standard error handle
  4023. STARTUPINFO             ends
  4024. STARTUPINFO_            equ       4+4+4+4+4+4+4+4+4+4+4+4+2+2+4+4+4+4
  4025. ;
  4026. ;------------------------------------------------------------------------------
  4027. ;
  4028. SYSTEMTIME              struct
  4029. st_wYear                WORD      0             ;current year
  4030. st_wMonth               WORD      0             ;current month (1..12)
  4031. st_wDayOfWeek           WORD      0             ;day of week (0 = sunday)
  4032. st_wDay                 WORD      0             ;current day of the month
  4033. st_wHour                WORD      0             ;current hour
  4034. st_wMinute              WORD      0             ;current minute
  4035. st_wSecond              WORD      0             ;current second
  4036. st_wMilliseconds        WORD      0             ;current millisecond
  4037. SYSTEMTIME              ends
  4038. SYSTEMTIME_             equ       2+2+2+2+2+2+2+2
  4039. ;
  4040. ;------------------------------------------------------------------------------
  4041. ;
  4042. TBADDBITMAP             struct
  4043. ta_hInst                HINSTANCE 0             ;resource module instance
  4044. ta_nID                  UINT      0             ;resource id
  4045. TBADDBITMAP             ends
  4046. TBADDBITMAP_            equ       4+4
  4047. ;
  4048. ;------------------------------------------------------------------------------
  4049. ;
  4050. TBBUTTON                struct
  4051. tb_iBitmap              INTEGER   0             ;zero-based button image index
  4052. tb_idCommand            INTEGER   0             ;button command id
  4053. tb_fsState              BYTE      0             ;button state flags
  4054. tb_fsStyle              BYTE      0             ;button style
  4055. tb_bReserved            BYTE      0, 0          ;(reserved)
  4056. tb_dwData               DWORD     0             ;application defined value
  4057. tb_iString              INTEGER   0             ;zero-based button string index
  4058. TBBUTTON                ends
  4059. TBBUTTON_               equ       4+4+1+1+(1+1)+4+4
  4060. ;
  4061. ;------------------------------------------------------------------------------
  4062. ;
  4063. TEXTMETRIC              struct
  4064. tm_tmHeight             LONGINT   0             ;char height (ascent+descent)
  4065. tm_tmAscent             LONGINT   0             ;units above baseline
  4066. tm_tmDescent            LONGINT   0             ;units below baseline
  4067. tm_tmInternalLeading    LONGINT   0             ;space included in tmHeight
  4068. tm_tmExternalLeading    LONGINT   0             ;extra space between rows
  4069. tm_tmAveCharWidth       LONGINT   0             ;average character width ('x')
  4070. tm_tmMaxCharWidth       LONGINT   0             ;maximum character width
  4071. tm_tmWeight             LONGINT   0             ;font weight
  4072. tm_tmOverhang           LONGINT   0             ;italic flag
  4073. tm_tmDigitizedAspectX   LONGINT   0             ;horizontal device aspect
  4074. tm_tmDigitizedAspectY   LONGINT   0             ;vertical device aspect
  4075. tm_tmFirstChar          CHAR      0             ;first font character value
  4076. tm_tmLastChar           CHAR      0             ;last font character value
  4077. tm_tmDefaultChar        CHAR      0             ;default substitution character
  4078. tm_tmBreakChar          CHAR      0             ;word break character
  4079. tm_tmItalic             BYTE      0             ;italic font
  4080. tm_tmUnderlined         BYTE      0             ;underline font
  4081. tm_tmStruckOut          BYTE      0             ;strikeout font
  4082. tm_tmPitchAndFamily     BYTE      0             ;font pitch/family
  4083. tm_tmCharSet            BYTE      0             ;font character set
  4084. TEXTMETRIC              ends
  4085. TEXTMETRIC_             equ       4+4+4+4+4+4+4+4+4+4+4+\
  4086.                                   CHAR_+CHAR_+CHAR_+CHAR_+\
  4087.                                   1+1+1+1+1
  4088. ;
  4089. ;------------------------------------------------------------------------------
  4090. ;
  4091. WNDCLASS                struct
  4092. w_style                 UINT      0             ;class style
  4093. w_lpfnWndProc           WNDPROC   0             ;window procedure
  4094. w_cbClsExtra            INTEGER   0             ;class extra data
  4095. w_cbWndExtra            INTEGER   0             ;window extra data
  4096. w_hInstance             HINSTANCE 0             ;class owner
  4097. w_hIcon                 HICON     0             ;icon handle
  4098. w_hCursor               HCURSOR   0             ;cursor handle
  4099. w_hbrBackground         HBRUSH    0             ;background color
  4100. w_lpszMenuName          LPCSTR    0             ;menu name
  4101. w_lpszClassName         LPCSTR    0             ;class name
  4102. WNDCLASS                ends
  4103. WNDCLASS_               equ       4+4+4+4+4+4+4+4+4+4
  4104. ;
  4105. ;------------------------------------------------------------------------------
  4106. ;
  4107. WNDPARAMETERS           struct
  4108. wp_hWnd                 HWND      0             ;window handle
  4109. wp_FontId               DWORD     0             ;font id
  4110. wp_TextColor            COLORREF  0             ;text color
  4111. wp_BkColor              COLORREF  0             ;background color
  4112. wp_BkMode               DWORD     0             ;background mode
  4113. WNDPARAMETERS           ends
  4114. WNDPARAMETERS_          equ       4+4+4+4+4
  4115. ;
  4116. ;==============================================================================
  4117. ;
  4118. ;       DDE STRUCTURES
  4119. ;
  4120. ;==============================================================================
  4121. ;
  4122. DDEACK                  struct
  4123. ddeack_Status           WORD      0             ;status
  4124. DDEACK                  ends
  4125. DDEACK_                 equ       2
  4126. ;
  4127. ;------------------------------------------------------------------------------
  4128. ;
  4129. DDEADVISE               struct
  4130. ddeadvise_Status        WORD      0             ;status
  4131. ddeadvise_cfFormat      WORD      0             ;clipboard data format
  4132. DDEADVISE               ends
  4133. DDEADVISE_              equ       2+2
  4134. ;
  4135. ;------------------------------------------------------------------------------
  4136. ;
  4137. DDEDATA                 struct
  4138. ddedata_Status          WORD      0             ;status
  4139. ddedata_cfFormat        WORD      0             ;clipboard data format
  4140. ddedata_Value           BYTE      0             ;data item
  4141. DDEDATA                 ends
  4142. DDEDATA_                equ       2+2+1
  4143. ;
  4144. ;------------------------------------------------------------------------------
  4145. ;
  4146. DDEPOKE                 struct
  4147. ddepoke_Status          WORD      0             ;status
  4148. ddepoke_cfFormat        WORD      0             ;clipboard data format
  4149. ddepoke_Value           BYTE      0             ;data item
  4150. DDEPOKE                 ends
  4151. DDEPOKE_                equ       2+2+1
  4152. ;
  4153. ;==============================================================================
  4154.  
  4155. ;*bk*
  4156. ;be careful from here on. This stuff assumes ansi, not unicode.
  4157. ;for example, StartDoc is equated to StartDocA, the ansi API
  4158. ;function. The unicode equivalent is StartDocB.
  4159.  
  4160.  
  4161.  
  4162. LPSECURITY_ATTRIBUTES   TYPEDEF PTR SECURITY_ATTRIBUTES
  4163. LPRECT          TYPEDEF PTR RECT
  4164. LPPOINT         TYPEDEF PTR POINT
  4165. LPPAINTSTRUCT           TYPEDEF PTR PAINTSTRUCT
  4166. HGDIOBJ         TYPEDEF DWORD
  4167. LPPROCESS_INFORMATION   TYPEDEF PTR PROCESS_INFORMATION
  4168. LPSTARTUPINFO           TYPEDEF PTR STARTUPINFOA
  4169. LPCTBBUTTON             TYPEDEF PTR TBBUTTON
  4170.  
  4171. ;*******************************************************************************
  4172. ;*                      WINDEF.H        ****************************************
  4173. ;*******************************************************************************
  4174.  
  4175. MAX_PATH        EQU     0104h
  4176.  
  4177. NULL            EQU     0h
  4178. FALSE           EQU     0h
  4179. TRUE            EQU     1h
  4180.  
  4181. ;CALLBACK       TYPEDEF PROTO STDCALL
  4182. CALLBACK TEXTEQU        <STDCALL>
  4183. ;WINAPI         TYPEDEF PROTO STDCALL
  4184. WINAPI TEXTEQU  <STDCALL>
  4185.  
  4186.  
  4187.  
  4188.  
  4189. ;*******************************************************************************
  4190. ;*                      WINNT.H         ****************************************
  4191. ;*******************************************************************************
  4192.  
  4193. LPSTR           TYPEDEF DWORD
  4194. LPCSTR          TYPEDEF DWORD
  4195.  
  4196. FILE_ATTRIBUTE_READONLY EQU     0001h
  4197. FILE_ATTRIBUTE_HIDDEN   EQU     0002h
  4198. FILE_ATTRIBUTE_SYSTEM   EQU     0004h
  4199. FILE_ATTRIBUTE_DIRECTORY EQU    0010h
  4200. FILE_ATTRIBUTE_ARCHIVE  EQU     0020h
  4201. FILE_ATTRIBUTE_NORMAL   EQU     0080h
  4202. FILE_ATTRIBUTE_TEMPORARY EQU    0100h
  4203. FILE_ATTRIBUTE_COMPRESSED EQU   0800h
  4204.  
  4205. GENERIC_READ            EQU     080000000h
  4206. GENERIC_WRITE           EQU     040000000h
  4207. GENERIC_EXECUTE         EQU     020000000h
  4208. GENERIC_ALL             EQU     010000000h
  4209.  
  4210. DLL_PROCESS_ATTACH      EQU     01h
  4211. DLL_THREAD_ATTACH       EQU     02h
  4212. DLL_THREAD_DETACH       EQU     03h
  4213. DLL_PROCESS_DETACH      EQU     00h
  4214.  
  4215. RtlMoveMemory           PROCDESC        STDCALL :DWORD, :DWORD, :DWORD
  4216. MoveMemory              TEXTEQU <RtlMoveMemory>
  4217. RtlFillMemory           PROCDESC        STDCALL :DWORD, :DWORD, :BYTE
  4218. FillMemory              TEXTEQU <RtlFillMemory>
  4219.  
  4220. ;*******************************************************************************
  4221. ;*                      WINERROR.H      ****************************************
  4222. ;*******************************************************************************
  4223.  
  4224. ERROR_SUCCESS           EQU     000h
  4225. ERROR_INVALID_HANDLE    EQU     006h
  4226. ERROR_ALREADY_EXISTS    EQU     0B7h
  4227.  
  4228.  
  4229. ;*******************************************************************************
  4230. ;*      KERNEL32.LIB    WINBASE.H       ****************************************
  4231. ;*******************************************************************************
  4232.  
  4233. ;INVALID_HANDLE_VALUE   EQU     -1
  4234.  
  4235. CREATE_NEW              EQU     01h
  4236. CREATE_ALWAYS           EQU     02h
  4237. OPEN_EXISTING           EQU     03h
  4238. OPEN_ALWAYS             EQU     04h
  4239. TRUNCATE_EXISTING       EQU     05h
  4240.  
  4241. OVERLAPPED              STRUCT
  4242.         Internal        DWORD   ?
  4243.         InternalHigh    DWORD   ?
  4244.         _Offset         DWORD   ?
  4245.         OffsetHigh      DWORD   ?
  4246.         hEvent          HANDLE  ?
  4247. OVERLAPPED              ENDS
  4248. LPOVERLAPPED            TYPEDEF PTR OVERLAPPED
  4249.  
  4250.  
  4251. GMEM_FIXED              EQU     00000h
  4252. GMEM_MOVEABLE           EQU     00002h
  4253. GMEM_ZEROINIT           EQU     00040h
  4254. GMEM_SHARE              EQU     02000h
  4255.  
  4256. DEBUG_PROCESS           EQU     001h
  4257. DEBUG_ONLY_THIS_PROCESS EQU     002h
  4258. CREATE_SUSPENDED        EQU     004h
  4259. DETACHED_PROCESS        EQU     008h
  4260. CREATE_NEWE_CONSOLE     EQU     010h
  4261. NORMAL_PRIORITY_CLASS   EQU     020h
  4262.  
  4263. WinMain                 PROCDESC        WINAPI  :HINSTANCE, :HINSTANCE, :LPSTR, :SDWORD
  4264. GlobalAlloc             PROCDESC        WINAPI  :UINT, :DWORD
  4265. GlobalLock              PROCDESC        WINAPI  :HGLOBAL
  4266. GlobalUnlock            PROCDESC        WINAPI  :HGLOBAL
  4267. GlobalFree              PROCDESC        WINAPI  :HGLOBAL
  4268. ExitProcess             PROCDESC        WINAPI  :DWORD
  4269. GetLastError            PROCDESC        WINAPI
  4270. DebugBreak              PROCDESC        WINAPI
  4271. Sleep                   PROCDESC        WINAPI  :DWORD
  4272. LoadResource            PROCDESC        WINAPI  :HINSTANCE, :HRSRC
  4273. GetFileSize             PROCDESC        WINAPI  :HANDLE, :LPDWORD
  4274. WriteFile               PROCDESC        WINAPI  :HANDLE, :LPCVOID, :DWORD, :LPDWORD, :LPOVERLAPPED
  4275. ReadFile                PROCDESC        WINAPI  :HANDLE, :LPVOID, :DWORD, :LPDWORD, :LPOVERLAPPED
  4276. CloseHandle             PROCDESC        WINAPI  :HANDLE
  4277. SetFilePointer  PROCDESC        WINAPI  :HANDLE, :DWORD, :LPDWORD, :DWORD
  4278. SetEndOfFile    PROCDESC        WINAPI  :HANDLE
  4279.  
  4280.  
  4281. Beep                    PROCDESC        WINAPI  :DWORD, :DWORD
  4282. lstrlenA                PROCDESC        WINAPI  :LPCSTR
  4283. lstrlen                 TEXTEQU <lstrlenA>
  4284.  
  4285. STARTF_USESHOWWINDOW    EQU     0001h
  4286. STARTF_USESIZE          EQU     0002h
  4287. STARTF_USEPOSITION      EQU     0004h
  4288. STARTF_USECOUNTCHARS    EQU     0008h
  4289. STARTF_USEFILLATTRIBUTE EQU     0010h
  4290. STARTF_RUNFULLSCREEN    EQU     0020h
  4291. STARTF_FORCEONFEEDBACK  EQU     0040h
  4292. STARTF_FORCEOFFFEEDBACK EQU     0080h
  4293. STARTF_USESTDHANDLES    EQU     0100h
  4294. STARTF_USEHOTKEY        EQU     0200h
  4295.  
  4296.  
  4297. CreateSemaphoreA        PROCDESC        WINAPI  :LPSECURITY_ATTRIBUTES, :LONG, :LONG, :LPCSTR
  4298. CreateSemaphore         TEXTEQU <CreateSemaphoreA>
  4299.  
  4300. GetModuleHandleA        PROCDESC        WINAPI  :DWORD
  4301. GetModuleHandle         TEXTEQU <GetModuleHandleA>
  4302. CreateProcessA          PROCDESC        STDCALL :LPCSTR, :LPSTR,\
  4303.                                         :LPSECURITY_ATTRIBUTES,\
  4304.                                         :LPSECURITY_ATTRIBUTES,\
  4305.                                         :BOOL, :DWORD, :LPVOID, :LPCSTR,\
  4306.                                         :LPSTARTUPINFO,\
  4307.                                         :LPPROCESS_INFORMATION
  4308. CreateProcess           TEXTEQU <CreateProcessA>
  4309. GetStartupInfoA         PROCDESC        WINAPI  :LPSTARTUPINFO
  4310. GetStartupInfo          TEXTEQU <GetStartupInfoA>
  4311. GetCommandLineA         PROCDESC        WINAPI
  4312. GetCommandLine          TEXTEQU <GetCommandLineA>
  4313. OutputDebugStringA      PROCDESC        WINAPI  :LPCSTR
  4314. OutputDebugString       TEXTEQU <OutputDebugStringA>
  4315. FindResourceA           PROCDESC        WINAPI  :HINSTANCE, :LPCSTR, :LPCSTR
  4316. FindResource            TEXTEQU <FindResourceA>
  4317. CreateFileA             PROCDESC        WINAPI  :LPCSTR, :DWORD, :DWORD,\
  4318.                                         :LPSECURITY_ATTRIBUTES,\
  4319.                                         :DWORD, :DWORD, :HANDLE
  4320. CreateFile              TEXTEQU <CreateFileA>
  4321. QueryPerformanceCounter PROCDESC        WINAPI  :DWORD
  4322. QueryPerformanceFrequency PROCDESC      WINAPI  :DWORD
  4323.  
  4324. CreateFileMappingA      PROCDESC        :HANDLE,  :LPSECURITY_ATTRIBUTES, :DWORD, :DWORD, :DWORD, :LPCTSTR
  4325. CreateFileMapping               TEXTEQU <CreateFileMappingA>
  4326. MapViewOfFile           PROCDESC        :HANDLE, :DWORD, :DWORD, :DWORD
  4327. UnmapViewOfFile         PROCDESC        :LPVOID
  4328. FlushViewOfFile         PROCDESC        :LPCVOID, :DWORD
  4329. CopyFileA                       PROCDESC        :LPTSTR, :LPTSTR, :BOOL
  4330. CopyFile                        TEXTEQU <CopyFileA>
  4331. ;*******************************************************************************
  4332. ;*      GDI32.LIB       WINGDI.H        ****************************************
  4333. ;*******************************************************************************
  4334.  
  4335. SRCCOPY                 EQU     00CC0020h       ;dest = source
  4336. SRCPAINT                EQU     00EE0086h       ;dest = source OR dest
  4337. SRCAND                  EQU     008800C6h       ;dest = source AND dest
  4338. SRCINVERT               EQU     00660046h       ;dest = source XOR dest
  4339. SRCERASE                EQU     00440328h       ;dest = source AND (NOT dest)
  4340.  
  4341. TA_LEFT                 EQU     000h
  4342. TA_RIGHT                EQU     002h
  4343. TA_CENTER               EQU     006h
  4344. TA_TOP                  EQU     000h
  4345. TA_BOTTOM               EQU     008h
  4346. TA_BASELINE             EQU     018h
  4347.  
  4348. SP_ERROR                EQU     -1
  4349.  
  4350.  
  4351. DRAFT_QUALITY           EQU     002h
  4352. PROOF_QUALITY           EQU     003h
  4353. FIXED_PITCH             EQU     001h
  4354. VARIABLE_PITCH          EQU     002h
  4355. FW_NORMAL               EQU     400
  4356. FW_BOLD                 EQU     700
  4357. FF_ROMAN                EQU     010h
  4358. FF_MODERN               EQU     030h
  4359.  
  4360. TRANSPARENT             EQU     01h
  4361. OPAQUE                  EQU     02h
  4362.  
  4363. WHITE_BRUSH             EQU     00h
  4364. LTGRAY_BRUSH            EQU     01h
  4365. GRAY_BRUSH              EQU     02h
  4366. DKGRAY_BRUSH            EQU     03h
  4367. BLACK_BRUSH             EQU     04h
  4368.  
  4369. BitBlt                  PROCDESC        WINAPI  :HDC, :DWORD, :DWORD, :DWORD, :DWORD,\
  4370.                                         :HDC, :DWORD, :DWORD, :DWORD
  4371. CreateCompatibleDC      PROCDESC        WINAPI  :HDC
  4372. CreateFontA             PROCDESC        WINAPI  :SDWORD, :SDWORD, :SDWORD, :SDWORD, :SDWORD, :DWORD, :DWORD,\
  4373.                                         :DWORD, :DWORD, :DWORD, :DWORD, :DWORD, :DWORD, :LPCSTR
  4374. CreateFont              TEXTEQU <CreateFontA>
  4375. CreateSolidBrush        PROCDESC        WINAPI  :COLORREF
  4376. DeleteDC                PROCDESC        WINAPI  :HDC
  4377. DeleteObject            PROCDESC        WINAPI  :HGDIOBJ
  4378. GetStockObject          PROCDESC        WINAPI  :SDWORD
  4379. LineTo                  PROCDESC        WINAPI  :HDC, :UINT, :UINT
  4380. RectVisible             PROCDESC        WINAPI  :HDC, :LPRECT
  4381. SelectObject            PROCDESC        WINAPI  :HDC, :HGDIOBJ
  4382. SetBkColor              PROCDESC        WINAPI  :HDC, :COLORREF
  4383. SetBkMode               PROCDESC        WINAPI  :HDC, :SDWORD
  4384.  
  4385. CLR_INVALID     EQU     0FFFFFFFFh
  4386.  
  4387.  
  4388. StretchBlt              PROCDESC        WINAPI  :HDC, :SDWORD, :SDWORD, :SDWORD, :SDWORD,\
  4389.                                         :HDC, :SDWORD, :SDWORD, :SDWORD, :SDWORD, :DWORD
  4390. SetTextColor            PROCDESC        WINAPI  :HDC, :COLORREF
  4391. SetTextAlign            PROCDESC        WINAPI  :HDC, :UINT
  4392.  
  4393. ;ABORTPROC              TYPEDEF PROCDESC STDCALL
  4394. ABORTPROC TEXTEQU <STDCALL>
  4395.  
  4396. DOCINFOA                STRUCT
  4397.         cbSize          SDWORD  ?
  4398.         lpszDocName     LPCSTR  ?
  4399.         lpszOutput      LPCSTR  ?
  4400.         lpszDataType    LPCSTR  ?
  4401.         fwType          DWORD   ?
  4402. DOCINFOA                ENDS
  4403. LPDOCINFO               TYPEDEF PTR DOCINFOA
  4404. DOCINFO                 TEXTEQU <DOCINFOA>
  4405.  
  4406. StartDocA               PROCDESC        WINAPI  :HDC, :LPDOCINFO
  4407. StartDoc                TEXTEQU <StartDocA>
  4408. EndDoc                  PROCDESC        WINAPI  :HDC
  4409. StartPage               PROCDESC        WINAPI  :HDC
  4410. EndPage                 PROCDESC        WINAPI  :HDC
  4411. AbortDoc                PROCDESC        WINAPI  :HDC
  4412. ;SetAbortProc           PROCDESC        WINAPI  :HDC, :ABORTPROC
  4413. SetAbortProc            PROCDESC        WINAPI  :HDC, :DWORD
  4414.  
  4415. MoveToEx                PROCDESC        WINAPI  :HDC, :UINT, :UINT, :LPPOINT
  4416. TextOutA                PROCDESC        WINAPI  :HDC, :DWORD, :DWORD, :LPCSTR, :DWORD
  4417. TextOut                 TEXTEQU <TextOutA>
  4418.  
  4419.  
  4420. ;*******************************************************************************
  4421. ;*      USER32.LIB      WINUSER.H       ****************************************
  4422. ;*******************************************************************************
  4423.  
  4424. ;DLGPROC                TYPEDEF PROCDESC STDCALL
  4425. DLGPROC TEXTEQU <STDCALL>
  4426.  
  4427. SB_HORZ                 EQU     0
  4428. SB_VERT                 EQU     1
  4429. SB_CTL                  EQU     2
  4430. SB_BOTH                 EQU     3
  4431. SB_THUMBPOSITION        EQU     4
  4432. SB_ENDSCROLL            EQU     8
  4433.  
  4434. SW_HIDE                 EQU     00h
  4435. SW_SHOWNORMAL           EQU     01h
  4436. SW_SHOWMINIMIZED        EQU     02h
  4437. SW_SHOWMAXIMIZED        EQU     03h
  4438. SW_SHOW                 EQU     05h
  4439. SW_RESTORE              EQU     09h
  4440. SW_SHOWDEFAULT          EQU     0Ah
  4441.  
  4442. WNDCLASSEX_ EQU 4*12
  4443. WNDCLASSEXA             STRUCT
  4444.         wc_cbSize               UINT            ?
  4445.         wc_style                UINT            ?
  4446.         wc_lpfnWndProc          DWORD           ?
  4447.         wc_cbClsExtra           SDWORD          ?
  4448.         wc_cbWndExtra           SDWORD          ?
  4449.         wc_hInstance            HINSTANCE       ?
  4450.         wc_hIcon                HICON           ?
  4451.         wc_hCursor              HCURSOR         ?
  4452.         wc_hbrBackground        HBRUSH          ?
  4453.         wc_lpszMenuName         LPCSTR          ?
  4454.         wc_lpszClassName        LPCSTR          ?
  4455.         wc_hIconSm              HICON           ?
  4456. WNDCLASSEXA             ENDS
  4457. WNDCLASSEX              TEXTEQU <WNDCLASSEXA>
  4458.  
  4459. LPMSG                   TYPEDEF DWORD
  4460.  
  4461. ;GWL_ID                 EQU     0FFFFFFF4h
  4462.  
  4463. WM_CREATE               EQU     0001h
  4464. WM_DESTROY              EQU     0002h
  4465. WM_SIZE                 EQU     0005h
  4466. WM_SETTEXT              EQU     000Ch
  4467. WM_PAINT                EQU     000Fh
  4468. WM_CLOSE                EQU     0010h
  4469. WM_ERASEBKGND           EQU     0014h
  4470. WM_NOTIFY               EQU     004Eh
  4471. WM_HELP                 EQU     0053h
  4472. WM_CHAR                 EQU     0102h
  4473. WM_INITDIALOG           EQU     0110h
  4474. WM_COMMAND              EQU     0111h
  4475. WM_TIMER                EQU     0113h
  4476. WM_HSCROLL              EQU     0114h
  4477. WM_VSCROLL              EQU     0115h
  4478. WM_MENUSELECT           EQU     011Fh
  4479. WM_CTLCOLORDLG          EQU     0136h
  4480. WM_MOUSEMOVE            EQU     0200h
  4481. WM_LBUTTONDOWN          EQU     0201h
  4482. WM_LBUTTONUP            EQU     0202h
  4483. WM_LBUTTONDBLCLK        EQU     0203h
  4484. WM_RBUTTONDOWN          EQU     0204h
  4485. WM_RBUTTONUP            EQU     0205h
  4486. WM_RBUTTONDBLCLK        EQU     0206h
  4487. WM_CUT                  EQU     0300h
  4488. WM_COPY                 EQU     0301h
  4489. WM_PASTE                EQU     0302h
  4490. WM_CLEAR                EQU     0303h
  4491. WM_UNDO                 EQU     0304h
  4492. WM_USER                 EQU     0400h
  4493.  
  4494. WS_POPUP                EQU     080000000h
  4495. WS_CHILD                EQU     040000000h
  4496. WS_MINIMIZE             EQU     020000000h
  4497. WS_VISIBLE              EQU     010000000h
  4498. WS_MAXIMIZE             EQU     001000000h
  4499. WS_CAPTION              EQU     000C00000h
  4500. WS_BORDER               EQU     000800000h
  4501. WS_DLGFRAME             EQU     000400000h
  4502. WS_VSCROLL              EQU     000200000h
  4503. WS_HSCROLL              EQU     000100000h
  4504. WS_SYSMENU              EQU     000080000h
  4505. ;WS_SIZEBOX             EQU     000040000h
  4506. WS_MINIMIZEBOX          EQU     000020000h
  4507. WS_MAXIMIZEBOX          EQU     000010000h
  4508. WS_OVERLAPPEDWINDOW     EQU     000CF0000h
  4509. WS_EX_NOPARENTNOTIFY    EQU     000000004h
  4510. WS_EX_WINDOWEDGE        EQU     000000100h
  4511. WS_EX_CLIENTEDGE        EQU     000000200h
  4512. WS_EX_OVERLAPPEDWINDOW  EQU     WS_EX_WINDOWEDGE + WS_EX_CLIENTEDGE
  4513.  
  4514. CS_VREDRAW              EQU     00001h
  4515. CS_HREDRAW              EQU     00002h
  4516. CS_PARENTDC             EQU     00080h
  4517. CS_BYTEALIGNWINDOW      EQU     02000h
  4518.  
  4519. BDR_RAISEDOUTER         EQU     01h
  4520. BDR_SUNKENOUTER         EQU     02h
  4521. BDR_RAISEDINNER         EQU     04h
  4522. BDR_SUNKENINNER         EQU     08h
  4523. EDGE_RAISED             EQU     BDR_RAISEDOUTER + BDR_RAISEDINNER
  4524. EDGE_SUNKEN             EQU     BDR_SUNKENOUTER + BDR_SUNKENINNER
  4525. EDGE_ETCHED             EQU     BDR_SUNKENOUTER + BDR_RAISEDINNER
  4526. EDGE_BUMP               EQU     BDR_RAISEDOUTER + BDR_SUNKENINNER
  4527. BF_LEFT                 EQU     01h
  4528. BF_TOP                  EQU     02h
  4529. BF_RIGHT                EQU     04h
  4530. BF_BOTTOM               EQU     08h
  4531. BF_RECT                 EQU     BF_LEFT + BF_TOP + BF_RIGHT + BF_BOTTOM
  4532. DrawEdge                PROCDESC        WINAPI  :HDC, :LPRECT, :UINT, :UINT
  4533.  
  4534.  
  4535. NMHDR                   STRUCT
  4536.         hwndFrom        HWND    ?
  4537.         idFrom          UINT    ?
  4538.         code            UINT    ?
  4539. NMHDR                   ENDS
  4540.  
  4541. GetMessageA             PROCDESC        WINAPI  :LPMSG, :HWND, :UINT, :UINT
  4542. GetMessage              TEXTEQU <GetMessageA>
  4543. TranslateMessage        PROCDESC        WINAPI  :LPMSG
  4544. DispatchMessageA        PROCDESC        WINAPI  :LPMSG
  4545. DispatchMessage         TEXTEQU <DispatchMessageA>
  4546.  
  4547. PeekMessageA            PROCDESC        WINAPI  :LPMSG, :HWND, :UINT, :UINT, :UINT
  4548. PeekMessage             TEXTEQU <PeekMessageA>
  4549. PM_NOREMOVE             EQU     00h
  4550. PM_REMOVE               EQU     01h
  4551. PM_NOYIELD              EQU     02h
  4552.  
  4553. SendMessageA            PROCDESC        WINAPI  :HWND, :UINT, :WPARAM, :LPARAM
  4554. SendMessage             TEXTEQU <SendMessageA>
  4555. PostMessageA            PROCDESC        WINAPI  :HWND, :UINT, :WPARAM, :LPARAM
  4556. PostMessage             TEXTEQU <PostMessageA>
  4557. DefWindowProcA          PROCDESC        WINAPI  :HWND, :UINT, :WPARAM, :LPARAM
  4558. DefWindowProc           TEXTEQU <DefWindowProcA>
  4559. PostQuitMessage         PROCDESC        WINAPI  :SWORD
  4560. RegisterClassA      PROCDESC WINAPI :DWORD
  4561. RegisterClass       TEXTEQU <RegisterClassA>
  4562. RegisterClassExA        PROCDESC        WINAPI  :DWORD
  4563. RegisterClassEx         TEXTEQU <RegisterClassExA>
  4564. CreateWindowA   PROCDESC WINAPI :LPCTSTR, :LPCTSTR, :DWORD, :DWORD, :DWORD, :DWORD, :DWORD, :HWND, :HMENU, :HANDLE, :DWORD
  4565. CreateWindow    TEXTEQU <CreateWindowA>
  4566. CreateWindowExA         PROCDESC        WINAPI  :DWORD, :LPCSTR, :LPCSTR, :DWORD, :SDWORD, :SDWORD,\
  4567.                                         :SDWORD, :SDWORD, :HWND, :HMENU, :HINSTANCE, :DWORD
  4568. CreateWindowEx          TEXTEQU <CreateWindowExA>
  4569. DestroyWindow           PROCDESC        WINAPI  :HWND
  4570. ShowWindow              PROCDESC        WINAPI  :HWND, :SDWORD
  4571. MoveWindow              PROCDESC        WINAPI  :HWND, :UINT, :UINT, :UINT, :UINT, :BOOL
  4572. SetWindowPos            PROCDESC        WINAPI  :HWND, :HWND, :UINT, :UINT, :UINT, :UINT, :UINT
  4573. IsIconic                PROCDESC        WINAPI  :HWND
  4574.  
  4575. SWP_NOSIZE              EQU     001h
  4576. SWP_NOMOVE              EQU     002h
  4577. SWP_NOZORDER            EQU     004h
  4578. SWP_FRAMECHANGED        EQU     020h
  4579. SWP_DRAWFRAME           EQU     SWP_FRAMECHANGED
  4580. HWND_TOP                EQU     000h
  4581.  
  4582. DLGTEMPLATE             STRUCT
  4583.         style           DWORD   ?
  4584.         dwExtendedStyle DWORD   ?
  4585.         cdit            WORD    ?
  4586.         x               SWORD   ?
  4587.         y               SWORD   ?
  4588.         nx              SWORD   ?
  4589.         ny              SWORD   ?
  4590. DLGTEMPLATE             ENDS
  4591. ;LPCDLGTEMPLATE         TYPEDEF PTR LPDLGTEMPLATE
  4592.  
  4593. ;CreateDialogParamA     PROCDESC        WINAPI  :HINSTANCE, :LPCSTR, :HWND, :DLGPROC, :LPARAM
  4594. CreateDialogParamA      PROCDESC        WINAPI  :HINSTANCE, :LPCSTR, :HWND, :DWORD, :LPARAM
  4595. CreateDialogParam       TEXTEQU <CreateDialogParamA>
  4596. ;DialogBoxParamA                PROCDESC        WINAPI  :HINSTANCE, :LPCSTR, :HWND, :DLGPROC, :LPARAM
  4597. DialogBoxParamA         PROCDESC        WINAPI  :HINSTANCE, :LPCSTR, :HWND, :DWORD, :LPARAM
  4598. DialogBoxParam          TEXTEQU <DialogBoxParamA>
  4599. EndDialog               PROCDESC        WINAPI  :HWND, :UINT
  4600. GetDlgItem              PROCDESC        WINAPI  :HWND, :UINT
  4601. GetDlgItemTextA         PROCDESC        WINAPI  :HWND, :UINT, :LPCSTR, : UINT
  4602. GetDlgItemText          TEXTEQU <GetDlgItemTextA>
  4603. SetDlgItemTextA         PROCDESC        WINAPI  :HWND, :SDWORD, :LPCSTR
  4604. SetDlgItemText          TEXTEQU <SetDlgItemTextA>
  4605. SendDlgItemMessageA     PROCDESC        WINAPI  :HWND, :UINT, :UINT, :WPARAM, :LPARAM
  4606. SendDlgItemMessage      TEXTEQU <SendDlgItemMessageA>
  4607. DefDlgProcA             PROCDESC        WINAPI  :HWND, :UINT, :WPARAM, :LPARAM
  4608. DefDlgProc              TEXTEQU <DefDlgProcA>
  4609. DLGWINDOWEXTRA          EQU     00000001Eh
  4610.  
  4611. SetFocus                PROCDESC        WINAPI  :HWND
  4612. SetTimer                PROCDESC        WINAPI  :HWND, :UINT, :UINT, :PTR DWORD
  4613. KillTimer               PROCDESC        WINAPI  :HWND, :UINT
  4614. EnableWindow            PROCDESC        WINAPI  :HWND, :BOOL
  4615. LoadAcceleratorsA       PROCDESC        WINAPI  :HINSTANCE, :LPCSTR
  4616. LoadAccelerators        TEXTEQU <LoadAcceleratorsA>
  4617. TranslateAcceleratorA   PROCDESC        WINAPI  :HWND, :HACCEL, :LPMSG
  4618. TranslateAccelerator    TEXTEQU <TranslateAcceleratorA>
  4619.  
  4620. SM_CXSCREEN             EQU     000h
  4621. SM_CYSCREEN             EQU     001h
  4622. SM_CXFULLSCREEN         EQU     010h
  4623. SM_CYFULLSCREEN         EQU     011h
  4624. GetSystemMetrics        PROCDESC        WINAPI  :UINT
  4625. DrawTextA               PROCDESC        WINAPI  :HDC, :LPCSTR, :UINT, :LPRECT, :UINT
  4626. DrawText                TEXTEQU <DrawTextA>
  4627. UpdateWindow            PROCDESC        WINAPI  :HWND
  4628. SetForegroundWindow     PROCDESC        WINAPI  :HWND
  4629. GetDC                   PROCDESC        WINAPI  :HWND
  4630. ReleaseDC               PROCDESC        WINAPI  :HWND, :HDC
  4631. BeginPaint              PROCDESC        WINAPI  :HWND, :LPPAINTSTRUCT
  4632. EndPaint                PROCDESC        WINAPI  :HWND, :LPPAINTSTRUCT
  4633. InvalidateRect          PROCDESC        WINAPI  :HWND, :LPRECT, :UINT
  4634. InvalidateRgn           PROCDESC        WINAPI  :HWND, :HRGN, :BOOL
  4635. GetScrollPos            PROCDESC        WINAPI  :HWND, :UINT
  4636. SetWindowTextA          PROCDESC        WINAPI  :HWND, :LPCSTR
  4637. SetWindowText           TEXTEQU <SetWindowTextA>
  4638. GetClientRect           PROCDESC        WINAPI  :HWND, :LPRECT
  4639. GetWindowRect           PROCDESC        WINAPI  :HWND, :LPRECT
  4640.  
  4641. MB_OK                   EQU     000h
  4642. MB_OKCANCEL             EQU     001h
  4643. MB_ABORTRETRYIGNORE     EQU     002h
  4644. MB_YESNOCANCEL          EQU     003h
  4645. MB_YESNO                EQU     004h
  4646. MB_RETRYCANCEL          EQU     005h
  4647. ;MB_ICONERROR           EQU     010h
  4648. ;MB_ICONWARNING         EQU     030h
  4649. MessageBoxA             PROCDESC        WINAPI  :HWND, :LPCSTR, :LPCSTR, :UINT
  4650. MessageBox              TEXTEQU <MessageBoxA>
  4651.  
  4652. COLOR_BACKGROUND        EQU     001h
  4653. COLOR_WINDOW            EQU     005h
  4654. ;COLOR_3DFACE           EQU     00Fh
  4655. ;COLOR_3DSHADOW         EQU     010h
  4656. COLOR_APPWORKSPACE      EQU     00Ch
  4657. COLOR_3DLIGHT           EQU     016h
  4658. GetSysColor             PROCDESC        WINAPI  :UINT
  4659. FillRect                PROCDESC        WINAPI  :HDC, :LPRECT, :HBRUSH
  4660. GetWindowLongA          PROCDESC        WINAPI  :HWND, :DWORD
  4661. GetWindowLong           TEXTEQU <GetWindowLongA>
  4662. GetDesktopWindow        PROCDESC        WINAPI
  4663. FindWindowA             PROCDESC        WINAPI  :LPCSTR, :LPCSTR
  4664. FindWindow              TEXTEQU <FindWindowA>
  4665. GetLastActivePopup      PROCDESC        WINAPI  :HWND
  4666.  
  4667. MF_POPUP                EQU     00010h
  4668. MF_SYSMENU              EQU     02000h
  4669. ;MFT_SEPARATOR          EQU     00800h
  4670.  
  4671. SC_SIZE                 EQU     0F000h
  4672. SC_MOVE                 EQU     0F010h
  4673. SC_MINIMIZE             EQU     0F020h
  4674. SC_MAXIMIZE             EQU     0F030h
  4675. SC_CLOSE                EQU     0F060h
  4676. SC_RESTORE              EQU     0F120h
  4677.  
  4678. LoadBitmapA             PROCDESC        WINAPI  :HINSTANCE, :LPCSTR
  4679. LoadBitmap              TEXTEQU <LoadBitmapA>
  4680. LoadCursorA             PROCDESC        WINAPI  :HINSTANCE, :LPCSTR
  4681. LoadCursor              TEXTEQU <LoadCursorA>
  4682. LoadIconA               PROCDESC        WINAPI  :HINSTANCE, :LPCSTR
  4683. LoadIcon                TEXTEQU <LoadIconA>
  4684.  
  4685. IMAGE_BITMAP            EQU     00000h
  4686. IMAGE_ICON              EQU     00001h
  4687. IMAGE_CURSOR            EQU     00002h
  4688. LR_LOADTRANSPARENT      EQU     00020h
  4689. LR_LOADMAP3DCOLORS      EQU     01000h
  4690. LoadImageA              PROCDESC        WINAPI  :HINSTANCE, :LPCSTR, :UINT, :UINT, :UINT, :UINT
  4691. LoadImage               TEXTEQU <LoadImageA>
  4692.  
  4693. IDC_ARROW               EQU     07f00h
  4694.  
  4695. LoadStringA             PROCDESC        WINAPI  :HINSTANCE, :UINT, :LPCSTR, :UINT
  4696. LoadString              TEXTEQU <LoadStringA>
  4697.  
  4698. IDOK                    EQU     01h
  4699. IDCANCEL                EQU     02h
  4700. IDABORT                 EQU     03h
  4701. IDRETRY                 EQU     04h
  4702. IDIGNORE                EQU     05h
  4703. IDYES                   EQU     06h
  4704. IDNO                    EQU     07h
  4705. IDCLOSE                 EQU     08h
  4706. IDHELP                  EQU     09h
  4707.  
  4708. ES_LEFT                 EQU     000h
  4709. ES_MULTILINE            EQU     004h
  4710. ES_AUTOVSCROLL          EQU     040h
  4711.  
  4712. BM_GETCHECK             EQU     0F0h
  4713. BM_SETCHECK             EQU     0F1h
  4714. BM_CLICK                EQU     0F5h
  4715. BM_SETIMAGE             EQU     0F7h
  4716.  
  4717. BST_UNCHECKED           EQU     00h
  4718. BST_CHECKED             EQU     01h
  4719. BST_INDETERMINATE       EQU     02h
  4720.  
  4721. SS_LEFT                 EQU     00h
  4722. SS_CENTER               EQU     01h
  4723. SS_RIGHT                EQU     02h
  4724. SS_ICON                 EQU     03h
  4725. SS_BLACKFRAME           EQU     07h
  4726.  
  4727. IsDialogMessageA        PROCDESC        WINAPI  :HWND, :LPMSG
  4728. IsDialogMessage         TEXTEQU <IsDialogMessageA>
  4729.  
  4730. DS_MODALFRAME           EQU     0080h
  4731. DS_NOIDLEMSG            EQU     0100h
  4732. DS_3DLOOK               EQU     0004h
  4733.  
  4734. HELP_CONTEXT            EQU     01h
  4735. HELP_QUIT               EQU     02h
  4736. HELP_INDEX              EQU     03h
  4737. HELP_CONTENTS           EQU     03h
  4738. HELP_HELPONHELP         EQU     04h
  4739. HELP_CONTEXTMENU        EQU     0Ah
  4740. HELP_FINDER             EQU     0Bh
  4741. HELP_WM_HELP            EQU     0Ch
  4742.  
  4743. WinHelpA                PROCDESC        WINAPI  :HWND, :LPCSTR, :UINT, :DWORD
  4744. WinHelp                 TEXTEQU <WinHelpA>
  4745.  
  4746.  
  4747. ;*******************************************************************************
  4748. ;*      COMDLG32.LIB    COMMDLG.H       ****************************************
  4749. ;*******************************************************************************
  4750.  
  4751. OPENFILENAMEA           STRUCT
  4752.         op_lStructSize  DWORD           ?
  4753.         op_hwndOwner    HWND            ?
  4754.         op_hInstance    HINSTANCE       ?
  4755.         op_lpstrFilter  LPCSTR          ?
  4756.         op_lpstrCustomFilter LPSTR              ?
  4757.         op_nMaxCustFilter       DWORD           ?
  4758.         op_nFilterIndex DWORD           ?
  4759.         op_lpstrFile    LPSTR           ?
  4760.         op_nMaxFile     DWORD           ?
  4761.         op_lpstrFileTitle       LPSTR           ?
  4762.         op_nMaxFileTitle        DWORD           ?
  4763.         op_lpstrInitialDir      LPCSTR          ?
  4764.         op_lpstrTitle   LPCSTR          ?
  4765.         op_Flags                DWORD           ?
  4766.         op_nFileOffset  WORD            ?
  4767.         op_nFileExtension       WORD            ?
  4768.         op_lpstrDefExt  LPCSTR          ?
  4769.         op_lCustData    LPARAM          ?
  4770.         op_lpfnHook     DWORD           ?
  4771.         op_lpTemplateName       LPCSTR          ?
  4772. OPENFILENAMEA           ENDS
  4773. LPOPENFILENAME          TYPEDEF PTR OPENFILENAMEA
  4774.  
  4775. GetOpenFileNameA        PROCDESC        WINAPI  :LPOPENFILENAME
  4776. GetOpenFileName         TEXTEQU <GetOpenFileNameA>
  4777. GetSaveFileNameA        PROCDESC        WINAPI  :LPOPENFILENAME
  4778. GetSaveFileName         TEXTEQU <GetSaveFileNameA>
  4779.  
  4780. OFN_READONLY            EQU     00000001h
  4781. OFN_OVERWRITEPROMPT     EQU     00000002h
  4782. OFN_HIDEREADONLY        EQU     00000004h
  4783. OFN_NOCHANGEDIR         EQU     00000008h
  4784. OFN_SHOWHELP            EQU     00000010h
  4785. OFN_ENABLEHOOK          EQU     00000020h
  4786. OFN_ENABLETEMPLATE      EQU     00000040h
  4787. OFN_ENABLETEMPLATEHANDLE EQU    00000080h
  4788. OFN_NOVALIDATE          EQU     00000100h
  4789. OFN_ALLOWMULTISELECT    EQU     00000200h
  4790. OFN_EXTENSIONDIFFERENT  EQU     00000400h
  4791. OFN_PATHMUSTEXIST       EQU     00000800h
  4792. OFN_FILEMUSTEXIST       EQU     00001000h
  4793. OFN_CREATEPROMPT        EQU     00002000h
  4794. OFN_SHAREAWARE          EQU     00004000h
  4795. OFN_NOREADONLYRETURN    EQU     00008000h
  4796. OFN_NOTESTFILECREATE    EQU     00010000h
  4797. OFN_NONETWORKBUTTON     EQU     00020000h
  4798. OFN_NOLONGNAMES         EQU     00040000h
  4799. OFN_EXPLORER            EQU     00080000h
  4800. OFN_NODEREFERENCELINKS  EQU     00100000h
  4801. OFN_LONGNAMES           EQU     00200000h
  4802.  
  4803. PRINTDLGA               STRUCT
  4804.         pr_lStructSize  DWORD   ?
  4805.         pr_hwndOwner    HWND    ?
  4806.         pr_hDevMode     HGLOBAL ?
  4807.         pr_hDevNames    HGLOBAL ?
  4808.         pr_hDC          HDC     ?
  4809.         pr_Flags                DWORD   ?
  4810.         pr_nFromPage    WORD    ?
  4811.         pr_nToPage              WORD    ?
  4812.         pr_nMinPage     WORD    ?
  4813.         pr_nMaxPage     WORD    ?
  4814.         pr_nCopies              WORD    ?
  4815.         pr_hInstance    HINSTANCE ?
  4816.         pr_lCustData    DWORD   ?
  4817.         pr_lpfnPrintHook        DWORD   ?
  4818.         pr_lpfnSetupHook        DWORD   ?
  4819.         pr_lpPrintTemplateName LPCSTR ?
  4820.         pr_lpSetupTemplateName LPCSTR ?
  4821.         pr_hPrintTemplate       HGLOBAL ?
  4822.         pr_hSetupTemplate       HGLOBAL ?
  4823. PRINTDLGA               ENDS
  4824. LPPRINTDLG              TYPEDEF PTR PRINTDLGA
  4825.  
  4826. PrintDlg                PROCDESC        WINAPI  :LPPRINTDLG
  4827.  
  4828. PD_ALLPAGES             EQU     00000h
  4829. PD_SELECTION            EQU     00001h
  4830. PD_PAGENUMS             EQU     00002h
  4831. PD_NOSELECTION          EQU     00004h
  4832. PD_NOPAGENUMS           EQU     00008h
  4833. PD_COLLATE              EQU     00010h
  4834. PD_PRINTTOFILE          EQU     00020h
  4835. PD_PRINTSETUP           EQU     00040h
  4836. PD_NOWARNING            EQU     00080h
  4837. PD_RETURNDC             EQU     00100h
  4838. PD_RETURNIC             EQU     00200h
  4839. PD_RETURNDEFAULT        EQU     00400h
  4840. PD_SHOWHELP             EQU     00800h
  4841. PD_ENABLEPRINTHOOK      EQU     01000h
  4842. PD_ENABLESETUPHOOK      EQU     02000h
  4843. PD_ENABLEPRINTTEMPLATE  EQU     04000h
  4844. PD_ENABLESETUPTEMPLATE  EQU     08000h
  4845. PD_ENABLEPRINTTEMPLATEHANDLE    EQU     0010000h
  4846. PD_ENABLESETUPTEMPLATEHANDLE    EQU     0020000h
  4847. PD_USEDEVMODECOPIES             EQU     0040000h
  4848. PD_USEDEVMODECOPIESANDCOLLATE   EQU     0040000h
  4849. PD_DISABLEPRINTTOFILE           EQU     0080000h
  4850. PD_HIDEPRINTTOFILE              EQU     0100000h
  4851. PD_NONETWORKBUTTON              EQU     0200000h
  4852.  
  4853. CommDlgExtendedError    PROCDESC        WINAPI
  4854.  
  4855. PAGESETUPDLGA           STRUCT
  4856.         pa_lStructSize  DWORD   ?
  4857.         pa_hwndOwner    HWND    ?
  4858.         pa_hDevMode     HGLOBAL ?
  4859.         pa_hDevNames    HGLOBAL ?
  4860.         pa_Flags                DWORD   ?
  4861.         pa_ptPaperSize  POINT   <>
  4862.         pa_rtMinMargin  RECT    <>
  4863.         pa_rtMargin     RECT    <>
  4864.         pa_hInstance    HINSTANCE ?
  4865.         pa_lCustData    LPARAM  ?
  4866.         pa_lpfnPageSetupHook    DWORD   ?
  4867.         pa_lpfnPagePaintHook    DWORD   ?
  4868.         pa_lpPageSetupTemplateName LPCSTR       ?
  4869.         pa_hPageSetupTemplate   HGLOBAL ?
  4870. PAGESETUPDLGA           ENDS
  4871. LPPAGESETUPDLG          TYPEDEF PTR PAGESETUPDLGA
  4872.  
  4873. PageSetupDlg            PROCDESC        WINAPI  :LPPAGESETUPDLG
  4874.  
  4875. PSD_DEFAULTMINMARGINS           EQU     0000000h
  4876. PSD_MINMARGINS                  EQU     0000001h
  4877. PSD_MARGINS                     EQU     0000002h
  4878. PSD_INTHOUSANDTHSOFINCHES       EQU     0000004h
  4879. PSD_INHUNDREDTHSOFMILLIMETERS   EQU     0000008h
  4880. PSD_DISABLEMARGINS              EQU     0000010h
  4881. PSD_DISABLEPRINTER              EQU     0000020h
  4882. PSD_NOWARNING                   EQU     0000080h
  4883. PSD_DISABLEORIENTATION          EQU     0000100h
  4884. PSD_DISABLEPAPER                EQU     0000200h
  4885. PSD_RETURNDEFAULT               EQU     0000400h
  4886. PSD_SHOWHELP                    EQU     0000800h
  4887. PSD_ENABLEPAGESETUPHOOK         EQU     0002000h
  4888. PSD_ENABLEPAGESETUPTEMPLATE     EQU     0008000h
  4889. PSD_ENABLEPAGESETUPTEMPLATEHANDLE EQU   0020000h
  4890. PSD_ENABLEPAGEPAINTHOOK         EQU     0040000h
  4891. PSD_DISABLEPAGEPAINTING         EQU     0080000h
  4892. PSD_NONETWORKBUTTON             EQU     0200000h
  4893.  
  4894.  
  4895. ;*******************************************************************************
  4896. ;*      COMCTL32.LIB    COMMCTRL.H      ****************************************
  4897. ;*******************************************************************************
  4898.  
  4899. InitCommonControls      PROCDESC        WINAPI
  4900.  
  4901.  
  4902. CreateToolbarEx         PROCDESC        WINAPI  :HWND, :DWORD, :UINT, :SDWORD,\
  4903.                                         :HINSTANCE, :UINT, :LPCTBBUTTON,\
  4904.                                         :SDWORD, :SDWORD, :SDWORD,\
  4905.                                         :SDWORD, :SDWORD, :UINT
  4906. TBSTATE_ENABLED         EQU     4h
  4907. TBSTYLE_BUTTON          EQU     0h
  4908. TBSTYLE_SEP             EQU     1h
  4909. TBSTYLE_TOOLTIPS        EQU     0100h
  4910.  
  4911. TB_ADDBITMAP            EQU     WM_USER + 13h
  4912.  
  4913.  
  4914. HINST_COMMCTRL          EQU     -1h
  4915. IDB_STD_SMALL_COLOR     EQU     00h
  4916.  
  4917. STD_CUT                 EQU     00h
  4918. STD_COPY                EQU     01h
  4919. STD_PASTE               EQU     02h
  4920. STD_UNDO                EQU     03h
  4921. STD_REDOW               EQU     04h
  4922. STD_DELETE              EQU     05h
  4923. STD_FILENEW             EQU     06h
  4924. STD_FILEOPEN            EQU     07h
  4925. STD_FILESAVE            EQU     08h
  4926. STD_PRINTPRE            EQU     09h
  4927. STD_PROPERTIES          EQU     0Ah
  4928. STD_HELP                EQU     0Bh
  4929. STD_FIND                EQU     0Ch
  4930. STD_REPLACE             EQU     0Dh
  4931. STD_PRINT               EQU     0Eh
  4932.  
  4933. TTN_FIRST               EQU     -520
  4934. TTN_NEEDTEXT            EQU     TTN_FIRST - 0
  4935.  
  4936. TOOLTIPTEXTA            STRUCT
  4937.         hdr             NMHDR   <>
  4938.         lpszText        LPSTR   ?
  4939.         szText          SBYTE   80 DUP (?)
  4940.         hinst           HINSTANCE ?
  4941.         uFlags          UINT    ?
  4942. TOOLTIPTEXTA            ENDS
  4943. LPTOOLTIPTEXT           TYPEDEF PTR TOOLTIPTEXTA
  4944. TOOLTIPTEXT             TEXTEQU <TOOLTIPTEXTA>
  4945.  
  4946. CreateStatusWindow      PROCDESC        WINAPI  :LONG, :LPCSTR, :HWND, :UINT
  4947.  
  4948. SB_SETTEXTA             EQU     (WM_USER+1)
  4949. SB_SETTEXT              EQU     SB_SETTEXTA
  4950. SB_SIMPLE               EQU     (WM_USER+9)
  4951. SBT_NOBORDERS           EQU     0100h
  4952. SBT_POPOUT              EQU     0200h
  4953.  
  4954. TBM_GETPOS              EQU     (WM_USER)
  4955. TBM_SETPOS              EQU     (WM_USER+5)
  4956. TBM_SETRANGE            EQU     (WM_USER+6)
  4957. TBM_SETTICFREQ          EQU     (WM_USER+20)
  4958. TBM_SETPAGESIZE         EQU     (WM_USER+21)
  4959. TB_LINEUP               EQU     00h
  4960. TB_LINEDOWN             EQU     01h
  4961. TB_PAGEUP               EQU     02h
  4962. TB_PAGEDOWN             EQU     03h
  4963. TB_THUMBPOSITION        EQU     04h
  4964. TB_THUMBTRACK           EQU     05h
  4965. TB_TOP                  EQU     06h
  4966. TB_BOTTOM               EQU     07h
  4967. TB_ENDTRACK             EQU     08h
  4968.  
  4969. UDM_SETRANGE            EQU     (WM_USER+101)
  4970. UDM_SETPOS              EQU     (WM_USER+103)
  4971. UDM_GETPOS              EQU     (WM_USER+104)
  4972.  
  4973.  
  4974.  
  4975. ;............................
  4976. ;Added 21 Feb 97
  4977.  
  4978. IDI_APPLICATION EQU     32512
  4979. IDI_HAND EQU       32513
  4980. IDI_QUESTION EQU           32514
  4981. IDI_EXCLAMATION EQU   32515
  4982. IDI_ASTERISK EQU           32516
  4983.  
  4984. MB_ICONHAND EQU             00000010h
  4985. MB_ICONQUESTION EQU        00000020h
  4986. MB_ICONEXCLAMATION EQU     00000030h
  4987. MB_ICONASTERISK EQU        00000040h
  4988.  
  4989. ;taken from WINGDI.H:
  4990. OEM_FIXED_FONT     EQU 10
  4991. ANSI_FIXED_FONT   EQU 11
  4992. ANSI_VAR_FONT     EQU 12
  4993. SYSTEM_FONT       EQU 13
  4994. DEVICE_DEFAULT_FONT EQU 14
  4995. DEFAULT_PALETTE   EQU 15
  4996. SYSTEM_FIXED_FONT   EQU  16
  4997.  
  4998.  
  4999. MessageBeep PROCDESC WINAPI :DWORD
  5000.  
  5001. MINMAXINFO struc
  5002.   res_x               dd ?
  5003.   res_y               dd ?
  5004.   maxsize_x           dd ?
  5005.   maxsize_y           dd ?
  5006.   maxposition_x       dd ?
  5007.   maxposition_y       dd ?
  5008.   mintrackposition_x  dd ?
  5009.   mintrackposition_y  dd ?
  5010.   maxtrackposition_x  dd ?
  5011.   maxtrackposition_y  dd ?
  5012. MINMAXINFO ends
  5013.